Skip to content

Commit

Permalink
Done.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristin F committed May 17, 2018
1 parent e3938e8 commit d932bef
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
function theBeatlesPlay(musicians, instruments){
var empty = [];
for (var i = 0; i < musicians.length; i++) {
empty[i] = musicians[i] + " plays " + instruments[i];
}
return empty;
}

function johnLennonFacts(facts){
var i = 0;
var jFacts = [];
while (i < facts.length){
jFacts[i] = facts[i] + "!!!";
i++;
}
return jFacts;
}

function iLoveTheBeatles(num){
var empty2 = [];
do {
empty2.push("I love the Beatles!");
num++;
}
while (num < 15)
return empty2;
}

0 comments on commit d932bef

Please sign in to comment.