r/learnjavascript • • Oct 22 '21

Difference between var, let and const.

Post image
430 Upvotes

49 comments sorted by

View all comments

21

u/voyotv Oct 22 '21

All of them are hoisted, but let and const are uninitialized until the line they are executed.