Introduction
What is the output of the following code?
let myArray = ["a", "b", "cat", "dog", "tree", "e", "house"];
for (let i = 0; i < myArray.length; i++) {
if (myArray[i].length == 1)
continue;
console.log(myArray[i]);
}
cat
dog
tree
house
PreviousNextRelated