I've created a random number selecting system but I couldn't figure out how to pick it from the array please help me. Here is my code:
var buttonColours = ["red", "blue", "green", "yellow"];
var randomChosenColour = buttonColours[newSequence];
function newSequence () {
var randomNumber = Math.floor(Math.random() * 4);
}