azrizhaziq
1 min readApr 13, 2018

--

Hi i have a question regarding this 2 different approach

class Cat {

// 1st approach
meow () {
console.log('meow')
}
// 2nd approach
walking = () => console.log('cat walk')
}

is there any significant performance in term of prototype inheritence?

--

--

Responses (1)