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`. diff --git a/ebook/17_ES7_incudes-and-exponential-operator.md b/ebook/17_ES7_incudes-and-exponential-operator.md index b9aa7b8..df23996 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: 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 +``` diff --git a/ebook/20_ES9_what-is-coming.md b/ebook/20_ES9_what-is-coming.md index a255b8b..da59595 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)