take code block out of blockquote

pull/2988/head
Richard Harris 5 years ago
parent 44489c9ccb
commit 9754f2a817

@ -13,7 +13,7 @@ function addNumber() {
} }
``` ```
But there's a more *idiomatic* solution: But there's a more idiomatic solution:
```js ```js
function addNumber() { function addNumber() {
@ -23,10 +23,10 @@ function addNumber() {
You can use similar patterns to replace `pop`, `shift`, `unshift` and `splice`. You can use similar patterns to replace `pop`, `shift`, `unshift` and `splice`.
> Assignments to *properties* of arrays and objects — e.g. `obj.foo += 1` or `array[i] = x` — work the same way as assignments to the values themselves. Assignments to *properties* of arrays and objects — e.g. `obj.foo += 1` or `array[i] = x` — work the same way as assignments to the values themselves.
>
> ```js ```js
> function addNumber() { function addNumber() {
> numbers[numbers.length] = numbers.length + 1; numbers[numbers.length] = numbers.length + 1;
> } }
> ``` ```

Loading…
Cancel
Save