Thursday, January 7, 2016

Function Hoisting in JavaScript

Function Hoisting in JavaScript Function hoisting is one of the fundamental point to understand in Java Script.I found it key point to understand shared my understanding on this : Here I have a function defined below : 1: var x = 1234; 2: (function verify() { 3: document.write(x); 4: })(); When I run this code snippet it displays value as...