Create our first Object

 Create our first Object

var user = {


name : "hera",


age : 21,


roll : 141168,


hobby : coding,


isMarried : false,


};


//now


user.name; // that return "hera"


"hera"


//now


user.roll; // that return 141168


141168




//


The Object and Array both are more different


//

Comments