Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript hoisting

hoistedVariable = 3;
console.log(hoistedVariable); // outputs 3 even when the variable is declared after it is initialized	
var hoistedVariable;
Source by www.interviewbit.com #
 
PREVIOUS NEXT
Tagged: #javascript #hoisting
ADD COMMENT
Topic
Name
7+1 =