JavaScript functions are first-class citizens you can store functions in variables, pass them to other functions as arguments, and return them from other functions as values. function sum(a, b) { return a + b; } let add = sum; console.log(add); // ...

Markdown supported · ⌘↵ to post
No responses yet.