ES6 Arrow functions
Last night I was reading this post: ES6 arrow functions, syntax and lexical scoping and going through the comments I saw this question:
so arrow functions always inherit scope?
The answer was by Barney:
I went to the console and typed:
nvm use 4
Could you guess what is going to be printed?
I could replicate this on ES5 without fat arrow function.
nvm use 0.10
What do you think? What does Babel does?