function Personal(name, age, hobby)
{
conn.name= name;
conn.age= age;
conn.hobby = hobby;
}
Personal.prototype.info = function() {
return `Hi there, I'm ${conn.name}, a ${conn.age} year old who loves working with ${conn.hobby}!`;
}
Personal.prototype.interesting = ['programming', 'video games', 'hangings out with friends'];
var lua = new Person("lua", 19, "Node.js")
console.log(lua.info());
console.log(`My interests includes: ${lua.interesting.join(', ')}.`);
xxirfanx / zoromd Goto Github PK
View Code? Open in Web Editor NEWπΊπππππ πΎπππππππ π©ππ π΄ππππ-π πππππ π«ππ'π ππππππ ππ ππππ ππππ ππ πππ ππππ ππ ππππππππ ππ ππ ππππ. π»πππππ
License: GNU General Public License v3.0