In javascript we can create object in two ways...
name:"xxxx";
favorites:["books",{apple: "yes",mango: "yes"},"car];
display: function()
{
with(this) document.write(" No : "+no+" Name :"+name);
}
};
To get the name in newobj... then
No comments:
Post a Comment