Update ch5_while.js
This commit is contained in:
@@ -11,6 +11,7 @@ while (notFound && someArray.length > 0) {
|
|||||||
if (someArray[0] === "Louiza") {
|
if (someArray[0] === "Louiza") {
|
||||||
console.log("Found her!");
|
console.log("Found her!");
|
||||||
notFound = false;
|
notFound = false;
|
||||||
|
console.log("false");
|
||||||
} else {
|
} else {
|
||||||
someArray.shift();
|
someArray.shift();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user