DEV Community

Discussion on: The Secret of Hoisting in JavaScript

Collapse
 
delucasso profile image
LuCaS

I had to read this several times ;). Now I know that when I'm using "var" I have to be cautious and/or run my code at least twice to find bugs. Or I should use "let" instead probably. Interesting. Thanks!