Skip to content
RED SAGSkills
medium10 pts · first answer countsjavascripthoisting

Function hoisting and let

What happens when this script runs?

console.log(sayHi())
console.log(total)

function sayHi() { return 'hi' }
let total = 5
Choose one answer