Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript hoisting

/*
Hoisting in JavaScript is a behavior in which a function 
or a variable can be used before declaration
*/

// using test before declaring
console.log(test);   // undefined
var test;
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #javascript #hoisting
ADD COMMENT
Topic
Name
2+2 =