Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

hoisting in javascript

// hoisting is as if your `function fun() {}` was located here. 

fun(); // works. 

function fun() {}
Source by fireship.io #
 
PREVIOUS NEXT
Tagged: #hoisting #javascript
ADD COMMENT
Topic
Name
9+8 =