function Person(name, age, gender) {
this.name = name;
this.age = age;
this.gender = gender;
}
Person.prototype.sayHello = function () {
console.log(
"Hello, my name is " + this.name + " and I'm " + this.age + " years old."
);
};
var person1 = new Person("John", 25, "male");
var person2 = new Person("Jane", 30, "female");
person1.sayHello();
person2.sayHello();