Question: In JavaScript please. I am confused I am entering : function doesArrayContainZero(numbers){ If (numbers ===0){ return true; }else if (numbers !==0){ return false; } }

 In JavaScript please. I am confused I am entering : function
In JavaScript please.
I am confused
I am entering :
function doesArrayContainZero(numbers){
If (numbers ===0){
return true;
}else if (numbers !==0){
return false;
}
}
// but apparently it is incorrect. What am i doing wrong? Am i doing the right approach? Someone please do the code for me and explain it

Modify the function to return true if the array contains a 0, and returns false otherwise. function doesArrayContainZero(numbers) 3 5 console.log(doesArrayContainZero(1, 2, 3]), undefined

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!