Make sure you run the tests with
theBeatlesPlay, which accepts two parameters--an array of musicians and an array of instruments.
for loop, which iterates over the array. of musicians. Be careful about what value you set your
countervariable to store. (Hint: Think about what the first index of an array is).
"John Lennon plays guitar".
The function should return the array of new strings containing what instruments each musician plays.
Create a function
This function will accept one argument, an array of facts about John Lennon (note that it might not be exactly the following facts):
const facts = [ "He was the last Beatle to learn to drive", "He was never a vegetarian", "He was a choir boy and boy scout", "He hated the sound of his own voice" ];
"!!!"to the end of every fact.
iLoveTheBeatleswhich accepts a number as a parameter.
"I love the Beatles!"to the empty array.
15. It should contain a number of strings that represents the difference between the input number and
"I love the Beatles!".
View Beatles Loops on Learn.co and start learning to code for free.