function getRandomChoice (array) { return array[Math.floor((Math.random() * array.length) + 1)] } getRandomChoice(["jersey mikes", "firehouse", "subway"])
By adding 1 to the result of Math.random() * array.length, it will always be greater than 1 which means the first element in the array (jersey mikes) will never be chosen.
You’ll either want to put subway first so it never gets chosen (cause it’s gross) or remove the + 1
function getRandomChoice (array) { return array[Math.floor((Math.random() * array.length))] } getRandomChoice(["jersey mikes", "firehouse", "subway"])