diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..6b665aaa --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "liveServer.settings.port": 5501 +} diff --git a/chapter-02/01-declaring-variables/01-const.html b/chapter-02/01-declaring-variables/01-const.html index 890efc5b..f04cae8c 100644 --- a/chapter-02/01-declaring-variables/01-const.html +++ b/chapter-02/01-declaring-variables/01-const.html @@ -1,22 +1,23 @@ -
- - + + +Open the console
- - + var pizza = true; + pizza = false; + console.log(pizza); + + diff --git a/chapter-02/01-declaring-variables/02-const.html b/chapter-02/01-declaring-variables/02-const.html index a632e6cd..ea1c41d8 100644 --- a/chapter-02/01-declaring-variables/02-const.html +++ b/chapter-02/01-declaring-variables/02-const.html @@ -1,21 +1,22 @@ - - - + + +Open the console
- - + const pizza = true; + pizza = false; + + diff --git a/chapter-02/01-declaring-variables/03-let.html b/chapter-02/01-declaring-variables/03-let.html index 48c4f071..e0d7bfdb 100644 --- a/chapter-02/01-declaring-variables/03-let.html +++ b/chapter-02/01-declaring-variables/03-let.html @@ -1,27 +1,28 @@ - - - + + +Open the console
- - + console.log("global", topic); + + diff --git a/chapter-02/01-declaring-variables/04-let.html b/chapter-02/01-declaring-variables/04-let.html index c035c59d..86cf5417 100644 --- a/chapter-02/01-declaring-variables/04-let.html +++ b/chapter-02/01-declaring-variables/04-let.html @@ -1,27 +1,28 @@ - - - + + +Open the console
- - + console.log("global", topic); + + diff --git a/chapter-02/01-declaring-variables/05-let.html b/chapter-02/01-declaring-variables/05-let.html index 27ac9141..008b8fa9 100644 --- a/chapter-02/01-declaring-variables/05-let.html +++ b/chapter-02/01-declaring-variables/05-let.html @@ -1,41 +1,42 @@ - - - + + +Open the console
- - + console.log(lastName + ", " + firstName + " " + middleName); + + diff --git a/chapter-02/01-declaring-variables/08-template-strings.html b/chapter-02/01-declaring-variables/08-template-strings.html index 50424145..c6a94ce5 100644 --- a/chapter-02/01-declaring-variables/08-template-strings.html +++ b/chapter-02/01-declaring-variables/08-template-strings.html @@ -1,24 +1,25 @@ - - - + + +Open the console
- - + console.log(`${lastName}, ${firstName} ${middleName}`); + + diff --git a/chapter-02/01-declaring-variables/09-template-strings.html b/chapter-02/01-declaring-variables/09-template-strings.html index 01d9f22d..cdbf8c62 100644 --- a/chapter-02/01-declaring-variables/09-template-strings.html +++ b/chapter-02/01-declaring-variables/09-template-strings.html @@ -1,28 +1,30 @@ - - - + + +Open the console
- - + `); + + diff --git a/chapter-02/01-declaring-variables/10-template-strings.html b/chapter-02/01-declaring-variables/10-template-strings.html index d5d8e999..44fe7f4d 100644 --- a/chapter-02/01-declaring-variables/10-template-strings.html +++ b/chapter-02/01-declaring-variables/10-template-strings.html @@ -1,27 +1,29 @@ - - - + + +Open the console
- - + `; + + diff --git a/chapter-02/02-es6-functions/01-default-parameters.html b/chapter-02/02-es6-functions/01-default-parameters.html index 256e1c1c..4e90df63 100644 --- a/chapter-02/02-es6-functions/01-default-parameters.html +++ b/chapter-02/02-es6-functions/01-default-parameters.html @@ -1,22 +1,23 @@ - - - + + +Open the console
- - + logActivity(); + + diff --git a/chapter-02/02-es6-functions/02-default-parameters.html b/chapter-02/02-es6-functions/02-default-parameters.html index 9f2f31c6..fe2cff48 100644 --- a/chapter-02/02-es6-functions/02-default-parameters.html +++ b/chapter-02/02-es6-functions/02-default-parameters.html @@ -1,30 +1,31 @@ - - - + + +Open the console
- - + logActivity(); + + diff --git a/chapter-02/03-arrow-functions/01-arrows.html b/chapter-02/03-arrow-functions/01-arrows.html index af2a8980..e5c595ec 100644 --- a/chapter-02/03-arrow-functions/01-arrows.html +++ b/chapter-02/03-arrow-functions/01-arrows.html @@ -1,25 +1,26 @@ - - - + + +Open the console
- - + console.log(lordify("Dale")); + console.log(lordify("Daryle")); + + diff --git a/chapter-02/03-arrow-functions/02-arrows.html b/chapter-02/03-arrow-functions/02-arrows.html index 4dfd8e00..e072d299 100644 --- a/chapter-02/03-arrow-functions/02-arrows.html +++ b/chapter-02/03-arrow-functions/02-arrows.html @@ -1,23 +1,24 @@ - - - + + +Open the console
- - + console.log(lordify("Dana")); + console.log(lordify("Daphne")); + + diff --git a/chapter-02/03-arrow-functions/03-arrows.html b/chapter-02/03-arrow-functions/03-arrows.html index 21a5f586..18b954a8 100644 --- a/chapter-02/03-arrow-functions/03-arrows.html +++ b/chapter-02/03-arrow-functions/03-arrows.html @@ -1,25 +1,26 @@ - - - + + +Open the console
- - + console.log(lordify("Dale", "Maryland")); + console.log(lordify("Daryle", "Culpeper")); + + diff --git a/chapter-02/03-arrow-functions/04-arrows.html b/chapter-02/03-arrow-functions/04-arrows.html index 2ec80b24..ec802e8d 100644 --- a/chapter-02/03-arrow-functions/04-arrows.html +++ b/chapter-02/03-arrow-functions/04-arrows.html @@ -1,23 +1,24 @@ - - - + + +Open the console
- - + console.log(lordify("Debbie", "Texas")); + console.log(lordify("Daphne", "Susanville")); + + diff --git a/chapter-02/03-arrow-functions/05-arrows.html b/chapter-02/03-arrow-functions/05-arrows.html index df550ef7..2d67ca97 100644 --- a/chapter-02/03-arrow-functions/05-arrows.html +++ b/chapter-02/03-arrow-functions/05-arrows.html @@ -1,34 +1,34 @@ - - - + + +Open the console
- - + console.log(lordify("Kelly", "Sonoma")); + console.log(lordify("Dave")); + + diff --git a/chapter-02/03-arrow-functions/06-arrows.html b/chapter-02/03-arrow-functions/06-arrows.html index f46989a7..28096f27 100644 --- a/chapter-02/03-arrow-functions/06-arrows.html +++ b/chapter-02/03-arrow-functions/06-arrows.html @@ -1,33 +1,33 @@ - - - + + +Open the console
- - + console.log(lordify()); + + diff --git a/chapter-02/03-arrow-functions/07-arrows.html b/chapter-02/03-arrow-functions/07-arrows.html index 56b1d199..ee9ddfc9 100644 --- a/chapter-02/03-arrow-functions/07-arrows.html +++ b/chapter-02/03-arrow-functions/07-arrows.html @@ -1,31 +1,30 @@ - - - + + +Open the console
- - + tahoe.print(); + + diff --git a/chapter-02/03-arrow-functions/08-arrows.html b/chapter-02/03-arrow-functions/08-arrows.html index e8799d0c..24c62ef1 100644 --- a/chapter-02/03-arrow-functions/08-arrows.html +++ b/chapter-02/03-arrow-functions/08-arrows.html @@ -1,31 +1,33 @@ - - - + + +Open the console
- - + tahoe.print(); + + diff --git a/chapter-02/03-arrow-functions/09-arrows.html b/chapter-02/03-arrow-functions/09-arrows.html index 65b5c202..71ee55e0 100644 --- a/chapter-02/03-arrow-functions/09-arrows.html +++ b/chapter-02/03-arrow-functions/09-arrows.html @@ -1,32 +1,28 @@ - - - + + +Open the console
- - + tahoe.print(); + + diff --git a/chapter-02/03-arrow-functions/10-arrows.html b/chapter-02/03-arrow-functions/10-arrows.html index dec3a18b..36a0cf57 100644 --- a/chapter-02/03-arrow-functions/10-arrows.html +++ b/chapter-02/03-arrow-functions/10-arrows.html @@ -1,31 +1,30 @@ - - - + + +Open the console
- - + tahoe.print(); + + diff --git a/chapter-02/03-arrow-functions/11-arrows.html b/chapter-02/03-arrow-functions/11-arrows.html index f7c5047c..b6e5330c 100644 --- a/chapter-02/03-arrow-functions/11-arrows.html +++ b/chapter-02/03-arrow-functions/11-arrows.html @@ -1,31 +1,30 @@ - - - + + +Open the console
- - + tahoe.print(); // true + + diff --git a/chapter-02/04-objects-and-arrays/01-destructuring.html b/chapter-02/04-objects-and-arrays/01-destructuring.html index 20faa849..cd8953b8 100644 --- a/chapter-02/04-objects-and-arrays/01-destructuring.html +++ b/chapter-02/04-objects-and-arrays/01-destructuring.html @@ -1,35 +1,36 @@ - - - + + +Open the console
- - + console.log(bread, meat); + console.log(sandwich.bread, sandwich.meat); + + diff --git a/chapter-02/04-objects-and-arrays/02-destructuring.html b/chapter-02/04-objects-and-arrays/02-destructuring.html index d423a863..e9cb66fc 100644 --- a/chapter-02/04-objects-and-arrays/02-destructuring.html +++ b/chapter-02/04-objects-and-arrays/02-destructuring.html @@ -1,29 +1,30 @@ - - - + + +Open the console
- - + lordify(regularPerson); + + diff --git a/chapter-02/04-objects-and-arrays/03-destructuring.html b/chapter-02/04-objects-and-arrays/03-destructuring.html index 74502bc7..bb4645d6 100644 --- a/chapter-02/04-objects-and-arrays/03-destructuring.html +++ b/chapter-02/04-objects-and-arrays/03-destructuring.html @@ -1,28 +1,29 @@ - - - + + +Open the console
- - + lordify(regularPerson); + + diff --git a/chapter-02/04-objects-and-arrays/04-destructuring.html b/chapter-02/04-objects-and-arrays/04-destructuring.html index a203e608..bbc3b2d5 100644 --- a/chapter-02/04-objects-and-arrays/04-destructuring.html +++ b/chapter-02/04-objects-and-arrays/04-destructuring.html @@ -1,22 +1,23 @@ - - - + + +Open the console
- - + console.log(firstResort); + + diff --git a/chapter-02/04-objects-and-arrays/05-destructuring.html b/chapter-02/04-objects-and-arrays/05-destructuring.html index 882988b9..adb39759 100644 --- a/chapter-02/04-objects-and-arrays/05-destructuring.html +++ b/chapter-02/04-objects-and-arrays/05-destructuring.html @@ -1,22 +1,23 @@ - - - + + +Open the console
- - + console.log(thirdResort); + + diff --git a/chapter-02/04-objects-and-arrays/06-object-literal-enhancement.html b/chapter-02/04-objects-and-arrays/06-object-literal-enhancement.html index 218aa128..33bc539b 100644 --- a/chapter-02/04-objects-and-arrays/06-object-literal-enhancement.html +++ b/chapter-02/04-objects-and-arrays/06-object-literal-enhancement.html @@ -1,25 +1,26 @@ - - - + + +Open the console
- - + console.log(funHike); + + diff --git a/chapter-02/04-objects-and-arrays/07-object-literal-enhancement.html b/chapter-02/04-objects-and-arrays/07-object-literal-enhancement.html index 78150b03..29daf06d 100644 --- a/chapter-02/04-objects-and-arrays/07-object-literal-enhancement.html +++ b/chapter-02/04-objects-and-arrays/07-object-literal-enhancement.html @@ -1,28 +1,29 @@ - - - + + +Open the console
- - + funHike.print(); + + diff --git a/chapter-02/04-objects-and-arrays/08-object-literal-enhancement.html b/chapter-02/04-objects-and-arrays/08-object-literal-enhancement.html index 28a491d5..714ea1de 100644 --- a/chapter-02/04-objects-and-arrays/08-object-literal-enhancement.html +++ b/chapter-02/04-objects-and-arrays/08-object-literal-enhancement.html @@ -1,38 +1,39 @@ - - - + + +Open the console
- - + skier.powderYell(); + skier.speed("hair on fire"); + console.log(JSON.stringify(skier)); + + diff --git a/chapter-02/04-objects-and-arrays/09-object-literal-enhancement.html b/chapter-02/04-objects-and-arrays/09-object-literal-enhancement.html index 4ab2a3c3..622edbe6 100644 --- a/chapter-02/04-objects-and-arrays/09-object-literal-enhancement.html +++ b/chapter-02/04-objects-and-arrays/09-object-literal-enhancement.html @@ -1,38 +1,39 @@ - - - + + +Open the console
- - + skier.powderYell(); + skier.speed(350); + console.log(JSON.stringify(skier)); + + diff --git a/chapter-02/04-objects-and-arrays/10-spread-operator.html b/chapter-02/04-objects-and-arrays/10-spread-operator.html index 95869107..a98fdb37 100644 --- a/chapter-02/04-objects-and-arrays/10-spread-operator.html +++ b/chapter-02/04-objects-and-arrays/10-spread-operator.html @@ -1,24 +1,25 @@ - - - + + +Open the console
- - + console.log(tahoe.join(", ")); + + diff --git a/chapter-02/04-objects-and-arrays/11-spread-operator.html b/chapter-02/04-objects-and-arrays/11-spread-operator.html index fc9bab05..ab7a49cb 100644 --- a/chapter-02/04-objects-and-arrays/11-spread-operator.html +++ b/chapter-02/04-objects-and-arrays/11-spread-operator.html @@ -1,24 +1,25 @@ - - - + + +Open the console
- - + console.log(last); + console.log(peaks.join(", ")); + + diff --git a/chapter-02/04-objects-and-arrays/12-spread-operator.html b/chapter-02/04-objects-and-arrays/12-spread-operator.html index cce7f90b..58a85844 100644 --- a/chapter-02/04-objects-and-arrays/12-spread-operator.html +++ b/chapter-02/04-objects-and-arrays/12-spread-operator.html @@ -1,24 +1,25 @@ - - - + + +Open the console
- - + console.log(last); // Rose + console.log(peaks.join(", ")); + + diff --git a/chapter-02/04-objects-and-arrays/13-spread-operator.html b/chapter-02/04-objects-and-arrays/13-spread-operator.html index 4cf451b5..32cc935e 100644 --- a/chapter-02/04-objects-and-arrays/13-spread-operator.html +++ b/chapter-02/04-objects-and-arrays/13-spread-operator.html @@ -1,24 +1,25 @@ - - - + + +Open the console
- - + console.log(rest.join(", ")); + + diff --git a/chapter-02/04-objects-and-arrays/14-spread-operator.html b/chapter-02/04-objects-and-arrays/14-spread-operator.html index 52d7594a..9578aa57 100644 --- a/chapter-02/04-objects-and-arrays/14-spread-operator.html +++ b/chapter-02/04-objects-and-arrays/14-spread-operator.html @@ -1,31 +1,32 @@ - - - + + +Open the console
- - + directions("Truckee", "Tahoe City", "Sunnyside", "Homewood", "Tahoma"); + + diff --git a/chapter-02/04-objects-and-arrays/15-spread-operator.html b/chapter-02/04-objects-and-arrays/15-spread-operator.html index acfac0f8..2dad7723 100644 --- a/chapter-02/04-objects-and-arrays/15-spread-operator.html +++ b/chapter-02/04-objects-and-arrays/15-spread-operator.html @@ -1,32 +1,32 @@ - - - + + +Open the console
- - + var backpackingMeals = { + ...morning, + dinner, + }; + console.log(backpackingMeals); + + diff --git a/chapter-02/05-promises/01-promises.html b/chapter-02/05-promises/01-promises.html index e6d987e8..f57e58f7 100644 --- a/chapter-02/05-promises/01-promises.html +++ b/chapter-02/05-promises/01-promises.html @@ -1,34 +1,36 @@ - - - + + +Open the console
- - + getFakeMembers(5).then( + (members) => console.log(members), + (err) => + console.error(new Error("cannot load members from randomuser.me")) + ); + + diff --git a/chapter-02/05-promises/02-promises.html b/chapter-02/05-promises/02-promises.html index 1fb6e852..a1bdbd9c 100644 --- a/chapter-02/05-promises/02-promises.html +++ b/chapter-02/05-promises/02-promises.html @@ -1,21 +1,22 @@ - - - + + +Open the console
- - + + +Open the console
+ + diff --git a/chapter-02/06-es6-class-syntax/01-classes.html b/chapter-02/06-es6-class-syntax/01-classes.html index b522f66a..a5107e1b 100644 --- a/chapter-02/06-es6-class-syntax/01-classes.html +++ b/chapter-02/06-es6-class-syntax/01-classes.html @@ -1,31 +1,32 @@ - - - + + +Open the console
- - + maui.print(); + + diff --git a/chapter-02/06-es6-class-syntax/02-classes.html b/chapter-02/06-es6-class-syntax/02-classes.html index 7c7f1eaf..54a4ca77 100644 --- a/chapter-02/06-es6-class-syntax/02-classes.html +++ b/chapter-02/06-es6-class-syntax/02-classes.html @@ -1,35 +1,34 @@ - - - + + +Open the console
- - + + +Open the console
+ + diff --git a/chapter-02/06-es6-class-syntax/03-classes.html b/chapter-02/06-es6-class-syntax/03-classes.html index 437ae908..d44f4d51 100644 --- a/chapter-02/06-es6-class-syntax/03-classes.html +++ b/chapter-02/06-es6-class-syntax/03-classes.html @@ -1,50 +1,50 @@ - - - + + +Open the console
- - + trip.print(); + + diff --git a/chapter-03/01-functional-javascript/01-functional.html b/chapter-03/01-functional-javascript/01-functional.html index 12907411..5a2eeddf 100644 --- a/chapter-03/01-functional-javascript/01-functional.html +++ b/chapter-03/01-functional-javascript/01-functional.html @@ -13,7 +13,7 @@Open the console
diff --git a/chapter-03/01-functional-javascript/03-functional.html b/chapter-03/01-functional-javascript/03-functional.html index 700ea8cb..2c605e78 100644 --- a/chapter-03/01-functional-javascript/03-functional.html +++ b/chapter-03/01-functional-javascript/03-functional.html @@ -14,11 +14,10 @@Open the console