How can I randomize the values within an array?
Would it be correct to write my code in this manner:
let colors = ['red', 'blue', 'green', 'yellow'];
let randomColorIndex = Math.floor(Math.random() * colors.length);
let randomChosenColour = colors[randomColorIndex];