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!";
Share on:

Leave a Comment

Your email address will not be published.

Scroll to Top