What is Hosting in Javascript

If you declear a variable using var and regular function, declaration of it automatically most of the top of it’s scope. Hosting work with only var.

 

Hosting refers to the process whereby the inpetator appears to move the declearation to the top of the code before execution

Leave a Reply

Your email address will not be published. Required fields are marked *