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 Goto Github PK
Name: LUA SER OFC
Type: User