mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-07 16:06:12 +02:00
Merge pull request #222 from the-programmers-hangout/content-fix-typos
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
|
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
|
```js
|
||||||
function doAsync(number) {
|
function doAsync(number) {
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ This can cause confusing behaviour, as `var` has different scoping behaviour dep
|
|||||||
|
|
||||||
### Hoisting
|
### 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
|
```js
|
||||||
console.log(myVar); // undefined.
|
console.log(myVar); // undefined.
|
||||||
|
|||||||
Reference in New Issue
Block a user