Thursday 13 September 2018

What is the Hoisting?
         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;

No comments:

Post a Comment

AdSense

The Ultimate Guide to Interceptors: Understanding Their Power and Functionality

  The Ultimate Guide to Interceptors: Understanding Their Power and Functionality An interceptor is a service that can intercept HTTP reques...

Follow