Requirements
Paste the following code into the of the HTML file.
Paste the following code into your JavaScript file.
var colors = ["Blue", "Red", "Orange", "Purple", "Hazel", "Aquamarine", "Periwinkle", "Azure", "Fuchsia", "Chocolate", "Amber", "Amaranth"]; var reindeer = ["Dasher", "Dancer", "Prancer", "Vixen", "Comet", "Cupid", "Donner", "Blitzen"];
var hohohoElement = document.getElementById("reindeer");
Your task is to loop through all the reindeer in the array, and add the name of the reindeer to the single HTML
element provided. The name of the reindeer should be prepended with the corresponding color from the other array.
Example output:
Blue Dasher
Red Dancer