JavaScript Functions: Declarations, Expressions, and First-Class Citizens
Function Statement/Declaration
Function statement and function declaration both are the same:
function a() {
console.log("hello a");
}
Function Expression
A function expression is when a function is assigned to a variable:
var b = function() {
...
sujaynitrr.hashnode.dev2 min read