diff --git a/Chapter 05/Code Samples/ch5_while.js b/Chapter 05/Code Samples/ch5_while.js index 7d3103e..c37ff76 100755 --- a/Chapter 05/Code Samples/ch5_while.js +++ b/Chapter 05/Code Samples/ch5_while.js @@ -11,7 +11,6 @@ while (notFound && someArray.length > 0) { if (someArray[0] === "Louiza") { console.log("Found her!"); notFound = false; - console.log("false"); } else { someArray.shift(); } diff --git a/Chapter 10/Code Samples/ch10-accessing.html b/Chapter 10/Code Samples/ch10-accessing.html new file mode 100755 index 0000000..63d2975 --- /dev/null +++ b/Chapter 10/Code Samples/ch10-accessing.html @@ -0,0 +1,11 @@ + +
++ Hi! +
+ + \ No newline at end of file diff --git a/Chapter 10/Code Samples/ch10-this.html b/Chapter 10/Code Samples/ch10-this.html new file mode 100755 index 0000000..dd981f7 --- /dev/null +++ b/Chapter 10/Code Samples/ch10-this.html @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/Chapter 10/Code Samples/ch10-toggle-visibility.html b/Chapter 10/Code Samples/ch10-toggle-visibility.html new file mode 100755 index 0000000..c5e9e83 --- /dev/null +++ b/Chapter 10/Code Samples/ch10-toggle-visibility.html @@ -0,0 +1,16 @@ + + + +I might disappear and appear.
+ + + \ No newline at end of file diff --git a/Chapter 10/Code Samples/ch10-treasure.html b/Chapter 10/Code Samples/ch10-treasure.html new file mode 100755 index 0000000..0e62cf1 --- /dev/null +++ b/Chapter 10/Code Samples/ch10-treasure.html @@ -0,0 +1,19 @@ + + +Click here for magic!
+ + + + diff --git a/errata.md b/errata.md index a91cf4c..10b82b6 100644 --- a/errata.md +++ b/errata.md @@ -25,25 +25,3 @@ 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 on line 8 to match the output -``` -while (notFound && someArray.length > 0) { - if (someArray[0] === "Louiza") { - console.log("Found her!"); - notFound = false; - console.log("false"); - } else { - someArray.shift(); - } -} -``` -## Chapter05, Page 112 - Rephrased the 2nd paragrah on the page. -"We are looking for all the groups that have two or more names starting with an M. If we find such a group, we will log it." - - -## Practice exercise 6.4, Page 129 - Fixed the incorrect referencing -Modify the calculator that you made in Practice exercise `6.2` -should be -Modify the calculator that you made in Practice exercise `6.4`