π° JavaScript DOM Manipulation Methods
β€1
π° JavaScript Array Cheatsheet
π Data Science Enthusiast
π https://www.linkedin.com/in/ayush4628
β¨ Creative Thinker
π https://www.linkedin.com/in/Myhurthearts
Hey everyone! I'm diving deep into data science and would love to connect with fellow data lovers! Letβs explore the world of analytics together! π ~ @ImRCBianfan
π https://www.linkedin.com/in/ayush4628
β¨ Creative Thinker
Hi there! Iβm passionate about creativity and innovation in various fields. Letβs share ideas and inspire each other! π¨ ~ @Myhurthearts
π https://www.linkedin.com/in/Myhurthearts
Letβs follow each other on LinkedIn and grow π
β€2
CHALLENGE
const user = {
name: 'Sarah',
age: 25,
getName() { return this.name; },
getAge: () => this.age
};
const methods = {
regular: user.getName,
arrow: user.getAge
};
console.log(methods.regular());
console.log(methods.arrow());
console.log(user.getName());
console.log(user.getAge());