random pick random var code example Example: js random string from array const randomElement = array[Math.floor(Math.random() * array.length)];