DEV Community

Gajender Tyagi
Gajender Tyagi

Posted on • Updated on

Well...I'ts hoisting after all

hosisting image from chrom
Well the image is self explanatory. You can get an idea of lexical scope of const and how does hosisting work for const.

For some extra fun change const with --var--

Discussion (0)