Difference between var, const and let in JavaScript

Hi all,

Reading the challenge threads over the last few weeks, I noticed that there was a lot of inconsistencies with the variable declarations. Generally var, const and let are mostly interchangeable but I found this article that explains the differences and thought I would share:

Var, Let, and Const - What’s the Difference?

5 Likes