// It is not working as expected. I want true to be printed first //and false in second time.
//But it is printing false both the thime.
// The is working fine when i am using function expression
// jshint esversion: 6
var Person = function (name, age) {
this.name = name;
this.age = age;
};
Person.prototype.young = () => this.age <= 18;
var p1 = new Person(“Aman”, 20);
var p2 = new Person(“Shivam”, 15);
console.log(p1.young());
console.log(p2.young());