Loop Through an Array with a For...of Loop
Use a
for...of loop to iterate over all elements in the colors array and push each color to the result array.JavaScript
Console