Variables in JavaScript

variables are containers used to store data values that can be manipulated or referenced later in a program

let - A variable declared with let can be changed later.(Block-Scoped)

const - A variable declared with const cannot be reassigned(Block-Scoped).

var - var was the first way to declare variables in JavaScript. It was used before let and const were introduced.One thing to remember is that var can also be redeclared(Global-Scoped).