Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertoMontalesi committed May 15, 2018
2 parents cbe0142 + 622f3c0 commit 6b24044
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ebook/12_classes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down
2 changes: 1 addition & 1 deletion ebook/17_ES7_incudes-and-exponential-operator.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions ebook/19_ES8_async-and-await.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <non-promise>` 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

Expand Down Expand Up @@ -166,4 +166,4 @@ asyncFunc();

asyncFunc().catch(console.log);
// TypeError: Failed to fetch
```
```
4 changes: 2 additions & 2 deletions ebook/20_ES9_what-is-coming.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ You can find the list on [github](https://github.com/tc39/proposals/blob/master/

&nbsp;

## Rest / Spred for objects
## Rest / Spread for objects

Now we can use the rest/spread syntax for objects, let's look at how:

Expand Down Expand Up @@ -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)
You can read more [here.](https://tc39.github.io/proposal-template-literal-revision/#sec-template-literals)

0 comments on commit 6b24044

Please sign in to comment.