Get Programming with JavaScript - Listing 2.11
Listing 2.11 - Declaring and assigning a constant with const
// declare a variable that may change
let playerLocation = "The Dungeon";
// declare a variable that won't change
const playerName = "Kandra";
console.log(playerName + " is in " + playerLocation);
// assign a new value
playerLocation = "The Old Library";
console.log(playerName + " is in " + playerLocation);