Skip to content

Commit 1066cb7

Browse files
Merge pull request #13 from itsmesean/master
Fixed typos
2 parents 69ce529 + 383caaa commit 1066cb7

19 files changed

+53
-55
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ Whether you are a complete beginner or you have some knowledge in JavaScript, th
2121

2222
After reading this book, Let Const, generators, promises and async won't be a problem anymore.
2323

24-
If you want to experience something new, this book also includes an introduction to the basics of TypeScript, a must-know for any JavaScript develop in 2019.
24+
If you want to experience something new, this book also includes an introduction to the basics of TypeScript, a must-know for any JavaScript developer in 2019.
2525

2626
## Where to buy it
2727

2828
You can purchase this ebook on amazon.com at this [link](https://www.amazon.com/dp/B07S2M3FVV)
2929

3030
You can also read my articles on my blog [here](https://www.inspiredwebdev.com/).
3131

32-
The ebook includes two sections dedicated to the basics of JavaScript and TypeScript and also contains 50+ extra quizzes for your to practice and test your knowledge after reading each chapter.
32+
The ebook includes two sections dedicated to the basics of JavaScript and TypeScript and also contains 50+ extra quizzes for you to practice and test your knowledge after reading each chapter.
3333
You can have a look at the quizzes from the first two chapters in the `quizzes` folder.
3434

3535
## About me

ebook/01_var_let_const.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,10 @@ In this case we are not reassigning the whole variable but just one of its prope
104104

105105
## The temporal dead zone
106106

107-
Now we will have a look at a very important concept which may sound complicate from its name, but i reassure you it is not.
107+
Now we will have a look at a very important concept which may sound complicated from its name, but I assure you it is not.
108108

109109
First let's have a look at a simple example:
110110

111-
Let's look at an example:
112-
113111
```javascript
114112
console.log(i);
115113
var i = "I am a variable";
@@ -143,7 +141,7 @@ The first opinion comes from [Mathias Bynes:](https://mathiasbynens.be/notes/es6
143141
- `var` should never be used in ES6.
144142

145143

146-
The second opinion comes from [Kyle Simpson:]( blog.getify.com/constantly-confusing-const/)
144+
The second opinion comes from [Kyle Simpson:](https://me.getify.com/)
147145

148146
- Use `var` for top-level variables that are shared across many (especially larger) scopes.
149147
- Use `let` for localized variables in smaller scopes.

ebook/02_arrow_functions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ console.log(results);
7878
// {name: "Asafa Powell", race: "100m dash", place: 3}]
7979
```
8080

81-
To tell JavaScript that what's inside the curly braces is an **object literal** that we want to implicitly return, we need to wrap everything inside parenthesis.
81+
To tell JavaScript what's inside the curly braces is an **object literal** we want to implicitly return, we need to wrap everything inside parenthesis.
8282

8383
Writing `race` or `race: race` is the same.
8484

@@ -121,7 +121,7 @@ box.addEventListener("click", function() {
121121
```
122122

123123

124-
The problem in this case is that the first `this` is bound to the `const` box but the second one, inside the `setTimeout`, will be set to the `Window` object, trowing this error:
124+
The problem in this case is that the first `this` is bound to the `const` box but the second one, inside the `setTimeout`, will be set to the `Window` object, throwing this error:
125125

126126
``` javascript
127127
Uncaught TypeError: cannot read property "toggle" of undefined
@@ -187,7 +187,7 @@ example(1,2,3);
187187

188188
As you can see we accessed the first argument using an array notation `arguments[0]`.
189189

190-
Similarly as what we saw with the `this` keyword, Arrow functions inherit the value of the `arguments object` from their parent scope.
190+
Similarly to what we saw with the `this` keyword, Arrow functions inherit the value of the `arguments object` from their parent scope.
191191

192192
Let's have a look at this example with our previous list of runners:
193193

ebook/03_default_function_arguments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Notice this detail:
101101
tip = 0.05} = {}
102102
```
103103

104-
If we don't default our argument Object to an empty Object, if we were to try and run `calculatePrice()` we would get:
104+
If we don't default our argument Object to an empty Object, and we were to try and run `calculatePrice()` we would get:
105105

106106
```js
107107
Cannot destructure property `total` of 'undefined' or 'null'.

ebook/04_template_literals.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ console.log(greeting);
1616
// Hello my name is Alberto
1717
```
1818

19-
In ES6 we can use backticks to make our life easier.
19+
In ES6 we can use backticks to make our lives easier.
2020

2121
``` javascript
2222
let name = "Alberto";
@@ -99,7 +99,7 @@ return isFridgeEmpty ? "$10" : "20"
9999
// $20
100100
```
101101

102-
If the condition before the `?` can be converted to `true` then the first value is returned, else it's the value after the `:` that get returned.
102+
If the condition before the `?` can be converted to `true` then the first value is returned, else it's the value after the `:` that gets returned.
103103

104104

105105
``` js

ebook/05_additional_string_methods.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Chapter 5: Additional string methods
22

3-
There are many methods that we can use againt strings. Here's a list of a few of them:
3+
There are many methods that we can use against strings. Here's a list of a few of them:
44

55
```js
66
// .length()

ebook/07_iterables-and-looping.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ for (const prop of Object.keys(car)){
5959

6060
## The `for in` loop
6161

62-
Even though it is not a new ES6 loop, let's look at the `for in` loop to understand what differentiate it compared to the `for of`.
62+
Even though it is not a new ES6 loop, let's look at the `for in` loop to understand what differentiates it to the `for of` loop.
6363

6464
The `for in` loop is a bit different because it will iterate over all the [enumerable properties](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Enumerability_and_ownership_of_properties) of an object in no particular order.
6565

@@ -103,7 +103,7 @@ for (let i of list) {
103103
`for in` will return a list of keys whereas the `for of` will return a list of values of the numeric properties of the object being iterated.
104104

105105

106-
Another differences is that we **can** stop a `for of` loop but we can't do the same with a `for in` loop.
106+
Another difference is that we **can** stop a `for of` loop but we can't do the same with a `for in` loop.
107107

108108
```js
109109
const digits = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];

ebook/08_array_improvements.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## `Array.from()`
44

5-
`Array.from()` is the first of the many new array methods that ES6 introduced.
5+
`Array.from()` is the first of many new array methods that ES6 introduced.
66

77
It will take something **arrayish**, meaning something that looks like an array but isn't, and transform it into a real array.
88

ebook/11_symbols.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ console.log(symbols);
8282
// length: 3
8383
```
8484

85-
We retrieved the array but to be able to access the properties we havee to use `map`.
85+
We retrieved the array but to be able to access the properties we have to use `map`.
8686

8787
```js
8888
const symbols = Object.getOwnPropertySymbols(office);

ebook/12_classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const person = class Person {
5353
5454
Let's start creating our first `Class`.
5555

56-
We only need a method called `constructor` (remember to add only one constructor, a `SyntaxError` will be thrown if the class contains more than one constructor methods).
56+
We only need a method called `constructor` (remember to add only one constructor, a `SyntaxError` will be thrown if the class contains more than one constructor method).
5757

5858
``` js
5959
class Person {

0 commit comments

Comments
 (0)