I am not sure the point you are trying to make is fully clear.<p>Your problem does not have anything to do with the assignment or createObject (just for the sake, the code as is isnt calling the function), but that accessing inexistent variables only returns undefined but no actual error.<p>Is that correct?