We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ace757d commit 1856fe3Copy full SHA for 1856fe3
1-js/05-data-types/04-array/article.md
@@ -453,7 +453,7 @@ We can use an array as a deque with the following operations:
453
- `push(...items)` adds `items` to the end.
454
- `pop()` removes the element from the end and returns it.
455
- `shift()` removes the element from the beginning and returns it.
456
-- `unshift(...items)` adds items to the beginning.
+- `unshift(...items)` adds `items` to the beginning.
457
458
To loop over the elements of the array:
459
- `for (let i=0; i<arr.length; i++)` -- works fastest, old-browser-compatible.
0 commit comments