Constants Example


Constants can be declared to keep a variable bound to a value.

Constants must be initialized with a value.
/* const constHey  */

As in the name, they cannot be re-assigned.
const constHey = "hello"
console.log(constHey)  // hello
/* constHey = 5 */