
JSJ 449: The Things Every JavaScript Developer Must Know
JavaScript Jabber
00:00
JavaScript - What's the Benefit of Using a Higher Order Function?
Sergei: I think you do need to understand higher order functions because it's a very, very, very common pattern in JavaScript. For example, add event listener, you can't do that without using a higher order function effectively. Pure functions are really simple at the end of the day; they're either given same arguments and produce exact same value or don't have any side effect on global variables. So there are going to be call back effects, right? It's like your server is going to modify your front-end code.
Play episode from 15:39
Transcript


