Skip to content

Commit aad6f5e

Browse files
fix missing js formatting
1 parent c038ef4 commit aad6f5e

File tree

1 file changed

+2
-2
lines changed
  • 1-js/06-advanced-functions/02-rest-parameters-spread

1 file changed

+2
-2
lines changed

1-js/06-advanced-functions/02-rest-parameters-spread/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ Remember when we talked about `Object.assign()` [in the past](https://javascript
231231
232232
It is possible to do the same thing with the spread operator!
233233
234-
```
234+
```js run
235235
let arr = [1, 2, 3];
236236
let arrCopy = [...arr]; // spread the array into a list of parameters
237237
// then put the result into a new array
@@ -250,7 +250,7 @@ alert(arrCopy); // 1, 2, 3
250250
251251
Note that it is possible to do the same thing to make a copy of an object:
252252
253-
```
253+
```js run
254254
let obj = { a: 1, b: 2, c: 3 };
255255
let objCopy = { ...obj }; // spread the object into a list of parameters
256256
// then return the result in a new object

0 commit comments

Comments
 (0)