Syntax to create an object:-
The example to create an object and display the some results:-
document.write("Student Name :- "+stuobj.name + " Roll no. :- " +stuobj.roll + " Subject :- " +stuobj.sub);
We have 1000s of tutorials on our website. Search Tutorials tutorials on our website.
Posted on: December 15, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles