How do you create a new object in JavaScript?
chrispitt
-2
Light Poster
Recommended Answers
Jump to Postprofile=new Object(); profile.FName="Vijayakumar"; profile.Lname="S"; document.write(profile.FName+" "+profile.Lname);
Created Object & new instances of an Object & added 2 properties to it... :)
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.