function animalSounds (sound, length) {
if (length === 9) {
return;
}
}
console.log(sound)
animalSounds (sound, recursiveStep) // recursiveStep = ?
animalSounds("moo", 1) // should print "moo", "moo", "moo", "moo"
7.
For the recursive function above, select the correct Recursive Step.
length += 2
length = 3
length + 4
length === 4
if ("3") {
console.log("option 1");
} else if ("") {
} else if (3) {
console.log("option 2");
console.log("option 3");
} else {
console.log("option 4");
}
8.
What will print to the console after the code above is run?
option 2
option 4
option 3
option 1