const keyword in Javascript ES6
The “const” keyword has the same block scope as the “let” keyword as shown in previous tutorial. With const, whatever was assigned, can not be changed…
Note that once “john” is assigned to “employee”, you can not assign anything else to “employee”. And you need to perform the assignment at the time of declaration.
However, because “john” is an object, the properties within that object can be changed (as in the case of john’s age).