There are three ways of defining a variable in JavaScript:
Var
This is used to declare a variable and the value can be changed at a later time within the JavaScript code.
Const
We can also use this to declare/define a variable but the value, as the name implies, is constant throughout the JavaScript program and cannot be modified at a later time.
Let
This mostly implies that the values can be changed at a later time within the JavaScript code.