JavaScript, Prototype, Defensive Coding, Security, Secure Coding.
created by a constructor have a prototype property that points to the constructor’s prototype object. Each function in JavaScript has a special property called prototype. The prototype object is used as the prototype for objects created by the constructor. Chrome Console: person1 output As you can