From 236041ab53017a03617e45ac5b0b5828f6c7a207 Mon Sep 17 00:00:00 2001 From: Karan <50290386+Sonawane-Karan26@users.noreply.github.com> Date: Tue, 26 Jul 2022 10:09:33 +0530 Subject: [PATCH] Update errata.md --- errata.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/errata.md b/errata.md index 10b82b6..b1f2032 100644 --- a/errata.md +++ b/errata.md @@ -25,3 +25,17 @@ if(hobby = "coding"){ ## Chapter 14, Page 379 - Replaced `Exercise 14.4` with correct solution Solution for [Exercise 14.4](https://github.com/PacktPublishing/JavaScript-from-Beginner-to-Professional/blob/main/Chapter%2014/Exercise_14.4.html) is now fixed. + + +## Chapter 05, Page 89 - Added the missing console.log statement to match the below given output +``` +while (notFound && someArray.length > 0) { + if (someArray[0] === "Louiza") { + console.log("Found her!"); + notFound = false; + console.log("false"); + } else { + someArray.shift(); + } +} +```