Why does this work?


#1

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,
Sam


#2

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