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);
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.