Skip to content
RED SAG Skills
mediumStudy question · answer published in JavaScript interview questions, so no pointsjavascripthoisting

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

Discussion 0

Join free to post in the discussion.

Related questions