class Students{
subjectName(name, id){
this.name = name;
this.id = id;
}
details(){
document.writeln("Student name is " + this.id + " and id is " + this.name + "<br>");
}
}
var object1 = new Students(15, "Nirdesh Kudeshiya");
object1.details();
var object2 = new Students(15, "Nirdesh Kudeshiya");
object2.details();