Function Declaration vs Function Expression: What’s the Difference?
What is function and why we need them
Function is a block of code that performs a specific task and can be used whenever needed.
function add(a, b) {
return a + b;
}
console.log(add(2, 3));
cons
javacript-new.hashnode.dev4 min read