You have a class Employee with some properties: function Employee(name, age){ this.name = name; this.age = age; } You already have an object of Employee which is emp1. How do you have its name property?
Anonymous
My answer: emp1.name = "Some other name" Expected anwser: The above way will return the error "property not defined". I need to set the new property using emp1.prototype.name="Some other name".
Check out your Company Bowl for anonymous work chats.