First Class Function VS Higher Order Function
First Class Functions :
Javascript treats functions as simple values. Functions are just another "type" of an object. The function can also be passed as an argument and returned from a function.
Code:
//function as a variable
const greet = function()...
abhijeetbasfore26.hashnode.dev1 min read