What is wrong with this code?


#1

var me = {
name:'hadi',
age:18
};
var me = new me ();
{
me["name"] = "hadis";
me.age = 19;

}

#2

see this exercise, it talks about literal notation and constructor.

your constructor contains some mistakes, constructor doesn't use curly brackets, and require the Object keyword