Skip to content

Instantly share code, notes, and snippets.

@claudiainbytes
Created August 25, 2017 03:45
Show Gist options
  • Select an option

  • Save claudiainbytes/adafeb6e9a00bada76cc2d762619e8e1 to your computer and use it in GitHub Desktop.

Select an option

Save claudiainbytes/adafeb6e9a00bada76cc2d762619e8e1 to your computer and use it in GitHub Desktop.
/*
* Programming Quiz: Colors of the Rainbow (6-4)
*/
var rainbow = ["Red", "Orange", "Blackberry", "Blue"];
rainbow.splice( 2, 1, "Yellow", "Green");
rainbow.push("Purple");
// your code goes here
console.log(rainbow);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment