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(', ')}.`);
-
Notifications
You must be signed in to change notification settings - Fork 6
License
xxirfanx/xxirfanx
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published