Closed purnimanagpal23 closed 3 years ago
The piece of code doesn't show reference errors anymore. In fact, it lets the variable hoist in block scope ending up showing values in the output.
I already searched for this issue
Edition: (pull requests not accepted for previous editions)
Book Title: Scope & Closures
Chapter: Chapter1: What's the scope
Section Title: Required Two Phases
Topic:Hoisting
Your assertions and changes are not correct.
The piece of code doesn't show reference errors anymore. In fact, it lets the variable hoist in block scope ending up showing values in the output.
I already searched for this issue
Edition: (pull requests not accepted for previous editions)
Book Title: Scope & Closures
Chapter: Chapter1: What's the scope
Section Title: Required Two Phases
Topic:Hoisting