Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

LEVEL 7 > LESSON 5

let fruits = ["Apple", "Banana", "Mango", "Cherry", "Papaya"];
// write your code here
let length = fruits[0][4].length;
if(fruits[0] !== fruits[4]){
console.log("Bingo")

}
else {
console.log("Nope")
}

error

Have you added if statement? With correct condition?
by

1 Answer

kshitijrana14
Try this one:

let fruits = ["Apple", "Banana", "Mango", "Cherry", "Papaya"];
// write your code here
if (fruits[0].length===fruits.length)
{
console.log("Bingo");
}
else
{
console.log("Nope");
}

Login / Signup to Answer the Question.