Demystifying JavaScript Variable Scope and Hoisting

I tested the code example on different browsers and it works. It seems that the issue happens only on Firefox. So, my words quoted by you are correct. The behavior of JavaScript is reliable, but we can’t say the same about its browsers’ implementations.

1 Like