Function Expression Hoisting
function statement
function cacheRules() {
return '💴'
}
function expression
const cacheRules = function() {
return '🤯'
}
function statement is hoisted, while the expression is not.
function statement
function cacheRules() {
return '💴'
}
function expression
const cacheRules = function() {
return '🤯'
}
function statement is hoisted, while the expression is not.