JavaScript Interview Questions – Intermediate Level | Codewindow.in
1. What is Hoisting in JavaScript? /*Example 01: Variable Hoisting*/ console.log(message); // output : undefined var message = "The variable Has been hoisted"; /*The above code looks like as below to the interpreter,*/ var message; console.log(message); message = "The variable Has been hoisted"; /*Example 02: Function Hoisting*/ function hoist() { a = 20; var b […]
JavaScript Interview Questions – Intermediate Level | Codewindow.in Read More »