Skip to content

Commit d02d034

Browse files
committed
Merge pull request DrkSephy#1 from jordanschalm/master
Typos & Grammar
2 parents 5508453 + 3a899c0 commit d02d034

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ console.log(food); // Reference Error
8484

8585
## Arrow Functions
8686

87-
Often times we have nested functions in which we would like to preserve the context of **this** from it's lexical scope. An example is shown below:
87+
Often times we have nested functions in which we would like to preserve the context of **this** from its lexical scope. An example is shown below:
8888

8989
```javascript
9090
function Person(name) {
@@ -352,7 +352,7 @@ var api = {
352352
export default api
353353
```
354354

355-
> **Best Practices**: Always use the **export default** method at **the end** of the module. It makes it clear what is being exported, and saves time by having to figure out what name a value was exported as. Moreso, the common practice in CommonJS modules is to export a single value or object. By sticking to this paradigm, we make our code easily readable and allows us to interpolate between CommonJS and ES6 modules.
355+
> **Best Practices**: Always use the **export default** method at **the end** of the module. It makes it clear what is being exported, and saves time by having to figure out what name a value was exported as. Moreso, the common practice in CommonJS modules is to export a single value or object. By sticking to this paradigm, we make our code easily readable and allow ourselves to interpolate between CommonJS and ES6 modules.
356356
357357
### Importing in ES6
358358

@@ -546,7 +546,7 @@ class Personal extends Person {
546546
}
547547
```
548548

549-
> **Best Practice**: While the syntax for creating classes in ES6 obscure how implementation and prototypes work under the hood, it is a good feature for beginners and allows us to write cleaner code.
549+
> **Best Practice**: While the syntax for creating classes in ES6 obscures how implementation and prototypes work under the hood, it is a good feature for beginners and allows us to write cleaner code.
550550
551551
<sup>[(back to table of contents)](#table-of-contents)</sup>
552552

@@ -738,4 +738,4 @@ Promise.all(urlPromises)
738738
.catch(function(err) {
739739
console.log("Failed: ", err);
740740
});
741-
```
741+
```

0 commit comments

Comments
 (0)