I recently teach this to a few juniors, and they got it faster than the old version, mainly because is less verbose, look at it without syntax highlight:
function (number) { return number * 2 };
number => number * 2;
Arrow functions look more like value → result, while the old syntax is more like function (value) return result, which feels like more words to say the same. Still my point is not so much you should only show Arrow functions, my point is that you should show both. Nowadays arrow functions are used a lot, and if this is "learn JavaScript Functions", arrow functions should be included.
I recently teach this to a few juniors, and they got it faster than the old version, mainly because is less verbose, look at it without syntax highlight:
Arrow functions look more like
value → result, while the old syntax is more likefunction (value) return result, which feels like more words to say the same. Still my point is not so much you should only show Arrow functions, my point is that you should show both. Nowadays arrow functions are used a lot, and if this is "learn JavaScript Functions", arrow functions should be included.Cheers!
Thanks for your comment, I just edited the article and added the arrow functions concept too :)