//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