Setting attributeTwo using an if statement. What is the correct way to do this?
var testBoolean = true; var object = { attributeOne: \"attributeOne\", a
Indeed you can but why don't you do the conditional statement before assigning it to object attribute. The code would be nicer.