Why does this work?


var me = {
name: "Samuel Hauptmann van Dam",
age: 25

var me = new Object();
me.age = 26;
me.name = "Samuel";

It feels like I am not at all doing what the "test" wants me to do? :stuck_out_tongue:

Anyone got a clue?

Best regards,


Okay I think I got it. It was that emptyObj, that completely confused me and I didn't get the concept of literal. xD