From 119da3c52168beac15513a67121955df7be5acb4 Mon Sep 17 00:00:00 2001 From: Dominic C Date: Fri, 11 May 2018 19:08:10 +0100 Subject: [PATCH 1/4] corrected output of 2**3 --- ebook/17_ES7_incudes-and-exponential-operator.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ebook/17_ES7_incudes-and-exponential-operator.md b/ebook/17_ES7_incudes-and-exponential-operator.md index da9f676..1c0879f 100644 --- a/ebook/17_ES7_incudes-and-exponential-operator.md +++ b/ebook/17_ES7_incudes-and-exponential-operator.md @@ -67,7 +67,7 @@ Now with the new exponential operator we can do this: 2**2; // 4 2**3; -// 4 +// 8 ``` It will get pretty useful when combining multiple operations like in this example: From 4101c39a03cbeee192285ba61be82de721b11e09 Mon Sep 17 00:00:00 2001 From: Leonardo Merza Date: Fri, 11 May 2018 18:43:26 -0400 Subject: [PATCH 2/4] Spelling fix --- ebook/20_ES9_what-is-coming.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ebook/20_ES9_what-is-coming.md b/ebook/20_ES9_what-is-coming.md index 53376e4..233bd18 100644 --- a/ebook/20_ES9_what-is-coming.md +++ b/ebook/20_ES9_what-is-coming.md @@ -5,7 +5,7 @@ You can find the list on [github](https://github.com/tc39/proposals/blob/master/   -## Rest / Spred for objects +## Rest / Spread for objects Now we can use the rest/spread syntax for objects, let's look at how: @@ -142,4 +142,4 @@ regexGreekSymbol.test('π'); When using *tagged* template literals the restriction on escape sequences are removed. -You can read more [here.](https://tc39.github.io/proposal-template-literal-revision/#sec-template-literals) \ No newline at end of file +You can read more [here.](https://tc39.github.io/proposal-template-literal-revision/#sec-template-literals) From ccba1411b42f40ec991a2d3af8f47f7f00420b81 Mon Sep 17 00:00:00 2001 From: nemo b Date: Sun, 13 May 2018 00:45:51 -0700 Subject: [PATCH 3/4] Typo in Chapter 12 --- ebook/12_classes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ebook/12_classes.md b/ebook/12_classes.md index c7838bc..73200f1 100644 --- a/ebook/12_classes.md +++ b/ebook/12_classes.md @@ -52,7 +52,7 @@ const person = class Person { } ``` ->Remember: class declaration (and expression) and **not hoisted** which means that unless you want to get a **ReferenceError** you need to declare your class before you access it. +>Remember: class declaration (and expression) are **not hoisted** which means that unless you want to get a **ReferenceError** you need to declare your class before you access it. Let's start creating our first `Class`. From 367dda315904b2b033c3b8814226a36d507edeea Mon Sep 17 00:00:00 2001 From: Dominic <8808097+doms@users.noreply.github.com> Date: Sun, 13 May 2018 20:15:34 -0500 Subject: [PATCH 4/4] fix typo --- ebook/19_ES8_async-and-await.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ebook/19_ES8_async-and-await.md b/ebook/19_ES8_async-and-await.md index 192451f..1d69086 100644 --- a/ebook/19_ES8_async-and-await.md +++ b/ebook/19_ES8_async-and-await.md @@ -111,7 +111,7 @@ Let's break down what we just did: - the keyword will tell JavaScript to always return a promise - if we specify to `return ` it will return a value wrapped inside a promise - the `await` keyword only works inside an `async` function. -- as the name implies, `await` will tell JavaScript to wait until the promie returns its result +- as the name implies, `await` will tell JavaScript to wait until the promise returns its result Let's see what happens if we try to use `await` outside an `async` function @@ -166,4 +166,4 @@ asyncFunc(); asyncFunc().catch(console.log); // TypeError: Failed to fetch -``` \ No newline at end of file +```