DEV Community

Discussion on: Scopes Hoisting Closures | Tricky Interview questions

Collapse
 
developeraniket profile image
DeveloperAniket

I think variable_2 is created for hoisting in the global scope so we can log that value.
but variable_3 log statement is written outside of scope. so error