define instance and non-instance properties in JavaScript
JavaScript
🤖 Code Explanation
This code creates a constructor function for a Person, with properties name and age. It also creates two prototype methods, getName and getAge, which return the corresponding property values.