Function Declaration and Expression
๐น Function Declaration
A function declaration is when you use the function keyword and give the function a name.
โ
Example:
function greet() {
console.log("Hello, Priyanshu!");
}
greet(); // Output: Hello, Priyanshu!
Key points:
The function has...
function-declaration-expression.hashnode.dev1 min read