console.log(foo) var foo = 10 console.log(foo) The expected behavior of the execution of the above code is that it’s gonna throw a ReferenceError because we are trying to log a variable that doesn’t exist(yet). But the execution of the above code ...

Markdown supported · ⌘↵ to post
No responses yet.