// The const keyword was introduced in ES6 (2015). // Variables defined with const cannot be Redeclared. // Variables defined with const cannot be Reassigned. // Variables defined with const have Block Scope.
Here is what the above code is Doing:
1. We declare a variable named myName and assign it the value of my name.
2. We then try to reassign the variable to a different value.
3. We then try to redeclare the variable.