Invoke your function even before declaring it: Hoisting in JavaScript
Take a Look
Example:
add(2, 6); // 8
function add(x,y){
return x+y;
}
We called the add function even before declaring it. This is possible in JavaScript because of Hoisting feature.
In hoisting, all the declarations are moved to the top of the...
bntharu.hashnode.dev1 min read