Problem Statement
What are first-class functions in JavaScript?
Explanation
First-class functions are functions that can be stored in variables, passed as arguments, or returned from other functions. Node.js uses this concept extensively for callbacks and asynchronous handling.
Code Solution
SolutionRead Only
function greet(){return 'Hello';}
function run(fn){console.log(fn());}
run(greet);