Let's create a function known as 'bigOrSmall' that requires one parameter, 'arr', which will contain an array of numbers. Inside the 'bigOrSmall' function, let's define a new array named 'answers'. Next, iterate through the input arr parameter and determine if each number in the array is greater than 100. If the number exceeds 100, add 'big' as a string to the answers array. Alternatively, if the number is less than or equal to 100, append 'small' as a string to the answers array. Finally, return the answers array within the function.
This represents my current progress.
function bigOrSmall(answers) {
for(let i = 0; i > 100; i++) {
return answers('big')
if(let i = 0; i <= 100; i++) {
return answers('small')
}
answers(arr[i])
}
return answers,
}
It seems like there might be an issue with my implementation since it's not passing the test. I am eager to receive some guidance on how to improve and move forward in the right direction.