Hint
Function declarations are hoisted completely. Function expressions are not.
console.log(foo());
function foo() {
return 'hello';
}hello
Explanation: Function declarations are fully hoisted β both name AND body. You can call them before they appear in code.
Key Insight: Function declarations are hoisted completely. Function expressions are not.