Hint
Multiple function declarations with the same name: the last one wins.
console.log(fn());
function fn() { return 1; }
function fn() { return 2; }2
Explanation: Both function declarations are hoisted. The second overwrites the first. Only the last one remains.
Key Insight: Multiple function declarations with the same name: the last one wins.