4 ms·
JavaScript has three main features that commonly trip up people from other languages. If you understand these three things, you'll be way ahead of the curve: 1
by philipwalton 14y ago
JavaScript has three main features that commonly trip up people from other languages. If you understand these three things, you'll be way ahead of the curve:
1) What `this` means in a function context
https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Operators/this https://developer.mozilla.org/en-US/docs/JavaScript/Referenc...
2) The prototype chain and prototypal inheritance
https://developer.mozilla.org/en-US/docs/JavaScript/Introduction_to_Object-Oriented_JavaScript https://developer.mozilla.org/en-US/docs/JavaScript/Introduc...
3) Function closures and variable scoping
https://developer.mozilla.org/en-US/docs/JavaScript/Guide/Closures https://developer.mozilla.org/en-US/docs/JavaScript/Guide/Cl...