Javascript – How to a random number log a array
It does not work this is for an API key. let hum = 'ethan'; let groceryList = ['bread', 'tomatoes', 'milk']; let random = Math.floor(Math.random() * 3); let em = ''; if (random === 0) { groceryList[0] === em; } if…