Hoisting in JavaScript
Before going into Hoisting let us see in how many ways we can declare a function in JavaScript.
1. Function Declaration :
We will write a simple function which adds two numbers and logs the sum in console.
function sum(a, b){
console.log(a+ b)
};
2. ...
sreedharnambi.hashnode.dev2 min read