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/>");
2 ответов
+ 1
Here's the output
Name: abdullah, Age: 47, Class room: ClassA
Name: Abdulaziz, Age: 19, Class room: ClassB
0
Thank you
شكرا shokrn