Guest User

Untitled

a guest
Dec 11th, 2017
446
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. /*
  2. * Programming Quiz: Colors of the Rainbow (6-4)
  3. */
  4.  
  5. var rainbow = ["Red", "Orange", "Blackberry", "Blue"];
  6.  
  7. // your code goes here
  8. //remove "Blackberry" and add "Yellow" and "Green"
  9. rainbow.splice(2, 1, "Yellow", "Green");
  10. rainbow.push("Purple");
  11. console.log(rainbow);
Add Comment
Please, Sign In to add comment