Skip to content

Commit 3c7c20d

Browse files
Merge pull request #427 from TomHodson91/patch-3
Added expected output for methods unshift and push
2 parents a24f503 + 9451242 commit 3c7c20d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

js/lesson2/tutorial.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,9 @@ var animals = ['dog', 'cat', 'rabbit', 'horse', 'elephant', 'monkey'];
310310
animals.unshift('cow');
311311
animals.push('zebra');
312312

313-
console.log(animals);
313+
console.log(animals);
314+
315+
// Expected output: ['cow', 'dog', 'cat', 'rabbit', 'horse', 'elephant', 'monkey', 'zebra']
314316
```
315317

316318
#### Removing objects

0 commit comments

Comments
 (0)