Functions are just another type of value in JavaScript
In JavaScript, functions are first-class citizens, which means they can be assigned to variables, passed as arguments to other functions, returned from functions, and stored in data structures. As a result, functions can be used as values in JavaScri...
mdalamin.hashnode.dev2 min read