I see a lot of people using the keyword ‘const’ instead of ‘let’ when storing the random value you get from an array. is this a preference or a convention?
arrWords = ["Soothing", "Humid", "Cold", "Ashes"];
let usersNameInput = prompt("Enter name: ");
let randomValueFromArrWords = Math.floor(Math.random() * arrWords.length);
console.log( usersNameInput + " You are probably " + arrWords[randomValueFromArrWords]);
Well above, is some sordid piece of JavaScript code and it works so I’m wondering why on a lot of answers for storing the random value, it’s always a const?