Quotes help make search much faster. Example: "Practice Makes Perfect"

Friday, December 7, 2012

Codecademy: Codeyear Now you see it, now you don't


//sample solution


//given this multi-dimensional array
var teams = [ ["robert","joe"], ["martin", "sharon"] ];

//first, remove "sharon" from team 2 using splice
teams[1].splice(1,2);
console.log(teams);
//then, remove the first team from the teams array using splice
teams.splice(0,1);
console.log(teams);

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts