re: JavaScript Basics Before You Learn React VIEW POST

TOP OF THREAD FULL DISCUSSION
re: 'Both declarations are local, meaning if you declare let inside a function scope, you can't call it outside of the function.' a var declared insid...
 

Oh sorry, what I actually meant is block scope not function scope. If you call x outside of the if scope it will return 2 with var. I'll fix that as soon possible. Thanks David :)

code of conduct - report abuse