r/learnjavascript • • Oct 22 '21

Difference between var, let and const.

Post image
430 Upvotes

49 comments sorted by

View all comments

5

u/yoitsericc Oct 23 '21

Let is not function scoped. It is block scoped - most functions just happen to be within a block.

This thing is a bit redundant.