Hoisting in javascript? and what is different this as server side technology?
In javascript Hosting is that where we can use any variable or method before declaring it.
In any server side technology it is very essential to declare any variable and method before using that.
The javascript compiler moves all the declaration of the variable and function at top so there is not an error to this.
Hoisting is only possible to declare the variable not in it's initialization means according to following example let we explain this line:
alert('x = ' + x); // display x = undefined
var x = 1;