Hoisting in JavaScript with let and const โ€“ and How it Differs from var

1 ยท freeCodeCamp.org ยท Nov. 19, 2022, 1:39 a.m.
I used to think that hoisting only happened to variables declared with var. But recently, I learned that it also happens to variables declared with let and const. I'll explain what I mean in this article. I also have a video version of this article [https://www.youtube.com/watch?v=VbHaL_J8Ex0] you can check...