Update ch5_while.js

This commit is contained in:
Karan
2022-07-26 10:07:26 +05:30
committed by GitHub
parent 504e91d4cc
commit 59ee1aa6f8
+1
View File
@@ -11,6 +11,7 @@ while (notFound && someArray.length > 0) {
if (someArray[0] === "Louiza") {
console.log("Found her!");
notFound = false;
console.log("false");
} else {
someArray.shift();
}