0

here an example

function student(name,age,classRoom) { this.name=name; this.age=age; this.classR=classRoom; } var st1Obj=new student("abdullah",47,"ClassA"); var st2Obj=new student("Abdulaziz",19,"ClassB"); document.write("Name: ",st1Obj.name,", Age: ",st1Obj.age,", Class room: ",st1Obj.classR,"<br/>"); document.write("Name: ",st2Obj.name,", Age: ",st2Obj.age,", Class room: ",st2Obj.classR,"<br/>");

29th Oct 2016, 8:57 PM
Abdullah Ojiman Al-Qahtani
Abdullah Ojiman Al-Qahtani - avatar
2 Respuestas
+ 1
Here's the output Name: abdullah, Age: 47, Class room: ClassA Name: Abdulaziz, Age: 19, Class room: ClassB
8th Nov 2016, 5:39 AM
மனோஜ்குமார் பழனிச்சாமி
மனோஜ்குமார் பழனிச்சாமி - avatar
0
Thank you شكرا shokrn
8th Nov 2016, 10:24 AM
Abdullah Ojiman Al-Qahtani
Abdullah Ojiman Al-Qahtani - avatar