const aboutMe = () => {
const myLife = {
innerName: "Amirhossein Allami",
innerBirthday: "October 7",
quote: "I develop what comes to my head with some style",
hobbies: ["coding", "algorithm", "game"],
getHobbiesCount: function() {
return this.hobbies.length;
},
introduce: function() {
return `Hi, I'm ${this.innerName}. My birthday is on ${this.innerBirthday}.
One of my favorite quotes is "${this.quote}".
I enjoy ${this.getHobbiesCount()} hobbies: ${this.hobbies.join(", ")}.`;
}
};
return myLife;
};
const myInfo = aboutMe();
console.log(myInfo.introduce());
amirallami-code Goto Github PK
Name: amirhossein allami
Type: User
Company: neurotract
Bio: I love computers and how they work
Location: 127.0.0.1