function Personal(name, age, hobby)
{
conn.name= aliciazyn;
conn.age= 18;
conn.hobby = mencintaimu;
}
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("alicia", 18, "Node.js")
console.log(alicia.info());
console.log(`My interests includes: ${alicia.interesting.join(', ')}.`);
-
🔭 I’m currently working on ...
-
🌱 I’m currently learning ...
-
👯 I’m looking to collaborate on ...
-
🤔 I’m looking for help with ...
-
💬 Ask me about ...
-->