11. creating a new object


#1

//keep getting errors, i have to do this by using object constructor, can anyone help me ?

var me = {
type:'Hans',
disposition: 23
};

var myObj = new Object();
name.propertykey =
var myObj ={};
myObj.name = "Hans";
myObj.age =23;

console.log(myObj);


#2

this is probably just a comment on how to do it, as a statement it might cause the error.