Angus Croll 11/2/2015

Of Classes and Arrow Functions (a cautionary tale)

Read Original

This technical article details the differences between traditional functions and arrow functions in JavaScript, focusing on their 'this' binding behavior. It demonstrates a common mistake of using arrow functions as class methods, which prevents them from being added to the prototype, leading to inefficiency and potential bugs. The article serves as a cautionary guide for JavaScript developers.

Of Classes and Arrow Functions (a cautionary tale)

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week