Skip to content

Commit

Permalink
Merge pull request thejsway#54 from me-shaon/issue-fix-41
Browse files Browse the repository at this point in the history
Issue fix thejsway#41
  • Loading branch information
bpesquet authored Jul 30, 2017
2 parents 0f1e94c + 9d422d9 commit 5edcef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manuscript/chapter07.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ console.log(movies[3]); // "Ghostbusters"

You add a new item to an array with the `push()` method. The new element to be added is passed as a parameter to the method. It is inserted at the end of the array.

To add an element at the beginning of an array, use the `unshift()` method of `push()`.
To add an element at the beginning of an array, use the `unshift()` method instead of `push()`.

```js
const movies = ["The Wolf of Wall Street", "Zootopia", "Babysitting"];
Expand Down

0 comments on commit 5edcef0

Please sign in to comment.