Notes
Variables defined with const cannot be redeclared and reassigned.
The following code will give an error since the variable PI is reassigned which isn't possible.
const PI = 3.1415;
PI = 3.14;
JavaScript const
variables must be assigned a value at the time they are declared:
const PI = 3.14;
Note: We must declared a variable using const only when we are sure that the value of of the variable will not change.