Skip to content

Commit 6b24044

Browse files
2 parents cbe0142 + 622f3c0 commit 6b24044

4 files changed

+6
-6
lines changed

ebook/12_classes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const person = class Person {
5252
}
5353
```
5454

55-
>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.
55+
>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.
5656
5757
Let's start creating our first `Class`.
5858

ebook/17_ES7_incudes-and-exponential-operator.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Now with the new exponential operator we can do this:
6767
2**2;
6868
// 4
6969
2**3;
70-
// 4
70+
// 8
7171
```
7272

7373
It will get pretty useful when combining multiple operations like in this example:

ebook/19_ES8_async-and-await.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Let's break down what we just did:
111111
- the keyword will tell JavaScript to always return a promise
112112
- if we specify to `return <non-promise>` it will return a value wrapped inside a promise
113113
- the `await` keyword only works inside an `async` function.
114-
- as the name implies, `await` will tell JavaScript to wait until the promie returns its result
114+
- as the name implies, `await` will tell JavaScript to wait until the promise returns its result
115115

116116
Let's see what happens if we try to use `await` outside an `async` function
117117

@@ -166,4 +166,4 @@ asyncFunc();
166166

167167
asyncFunc().catch(console.log);
168168
// TypeError: Failed to fetch
169-
```
169+
```

ebook/20_ES9_what-is-coming.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ You can find the list on [github](https://github.com/tc39/proposals/blob/master/
55

66
&nbsp;
77

8-
## Rest / Spred for objects
8+
## Rest / Spread for objects
99

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

@@ -142,4 +142,4 @@ regexGreekSymbol.test('π');
142142

143143
When using *tagged* template literals the restriction on escape sequences are removed.
144144

145-
You can read more [here.](https://tc39.github.io/proposal-template-literal-revision/#sec-template-literals)
145+
You can read more [here.](https://tc39.github.io/proposal-template-literal-revision/#sec-template-literals)

0 commit comments

Comments
 (0)