Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Programming Quiz: Colors of the Rainbow (6-4)
- */
- var rainbow = ["Red", "Orange", "Blackberry", "Blue"];
- // your code goes here
- //remove "Blackberry" and add "Yellow" and "Green"
- rainbow.splice(2, 1, "Yellow", "Green");
- rainbow.push("Purple");
- console.log(rainbow);
Add Comment
Please, Sign In to add comment