mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 17:25:59 +02:00
content(resources): fix typos
This commit is contained in:
@@ -33,7 +33,7 @@ function doAsync(number) {
|
||||
```
|
||||
|
||||
You also don't have to nest `.then` functions, the whole point of promises
|
||||
is that they allow you do chain them sequentially.
|
||||
is that they allow you to chain them sequentially.
|
||||
|
||||
```js
|
||||
function doAsync(number) {
|
||||
|
||||
@@ -141,7 +141,7 @@ This can cause confusing behaviour, as `var` has different scoping behaviour dep
|
||||
|
||||
### Hoisting
|
||||
|
||||
Variables defined using `var` are also hoisted to the top of the function they are declared in, which can casue some weird behaviour.
|
||||
Variables defined using `var` are also hoisted to the top of the function they are declared in, which can cause some weird behaviour.
|
||||
|
||||
```js
|
||||
console.log(myVar); // undefined.
|
||||
|
||||
Reference in New Issue
Block a user