From d932bef3bd5573604d6267ee5a8b465f39fcc458 Mon Sep 17 00:00:00 2001 From: Kristin F Date: Thu, 17 May 2018 01:32:32 +0000 Subject: [PATCH] Done. --- index.js | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/index.js b/index.js index e69de29bb2..a823f227ec 100644 --- a/index.js +++ b/index.js @@ -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; +} \ No newline at end of file