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); // ...
ksubramanyeshwara.hashnode.dev10 min read
No responses yet.