Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

function hoisting in js

console.log(functionBelow("Hello"));
var functionBelow = function(greet) {
   return `${greet} world`;
}
console.log(functionBelow("Hi"));
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #function #hoisting #js
ADD COMMENT
Topic
Name
3+9 =