Explore Differences Between the var and let Keywords

 Unlike var, when you use let, a variable with the same name can only be declared once.

A keyword called let was introduced in ES6, a major update to JavaScript, to solve this potential issue with the var keyword. 

let catName = "Oliver";
let catSound = "Meow!";
0 0 votes
Article Rating
Was this article helpful?
YesNo
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
Scroll to Top