4 ms·
Great read, though his writing style is less intuitive if you are fairly new to JavaScript and trying to grasp some of its concepts. For example, in his reduce
by varrock 6y ago
Great read, though his writing style is less intuitive if you are fairly new to JavaScript and trying to grasp some of its concepts. For example, in his reduce function [0] example, he names his variable "current" to bind the accumulated value the reduce function is going to eventually return. That is a totally fair name, but I don't know if it really "clicks" if you were reading over this for the first time. I think it would be faster to grasp the reduce function's purpose if it was simply named "accumulated" or something alike, especially when this snippet is advertising the idea of higher order functions and callbacks.
Little things like this I am nit-picky about, but overall, great book.
[0] https://eloquentjavascript.net/05_higher_order.html#h_fx3e34kT/k https://eloquentjavascript.net/05_higher_order.html#h_fx3e34...