Callbacks in JavaScript: Why They Exist
❓What is Function as Values
In JavaScript, functions are first-class citizens → meaning:
You can store them in variables
function add(){
console.log("adding")
}
let a = add; // Storing function
js-learning-callbacks.hashnode.dev4 min read