What is First class function in JavaScript ?
In JavaScript, functions are first-class citizens. This means that functions in JavaScript are treated like any other variable. A first-class function can:
Be stored in a variable:
let myFunction = function() {
console.log('Hello World');
}...
diwakarkashyap.hashnode.dev1 min read