Skip to content

Commit 7febbb9

Browse files
authored
Merge pull request #2989 from Rnbsov/patch-39
add commas
2 parents 02b43db + 88ce8fa commit 7febbb9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

1-js/05-data-types/04-array/article.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ A stack is usually illustrated as a pack of cards: new cards are added to the to
153153

154154
For stacks, the latest pushed item is received first, that's also called LIFO (Last-In-First-Out) principle. For queues, we have FIFO (First-In-First-Out).
155155

156-
Arrays in JavaScript can work both as a queue and as a stack. They allow you to add/remove elements both to/from the beginning or the end.
156+
Arrays in JavaScript can work both as a queue and as a stack. They allow you to add/remove elements, both to/from the beginning or the end.
157157

158-
In computer science the data structure that allows this, is called [deque](https://en.wikipedia.org/wiki/Double-ended_queue).
158+
In computer science, the data structure that allows this, is called [deque](https://en.wikipedia.org/wiki/Double-ended_queue).
159159

160160
**Methods that work with the end of the array:**
161161

@@ -399,7 +399,7 @@ There is one more syntax to create an array:
399399
let arr = *!*new Array*/!*("Apple", "Pear", "etc");
400400
```
401401

402-
It's rarely used, because square brackets `[]` are shorter. Also there's a tricky feature with it.
402+
It's rarely used, because square brackets `[]` are shorter. Also, there's a tricky feature with it.
403403

404404
If `new Array` is called with a single argument which is a number, then it creates an array *without items, but with the given length*.
405405

0 commit comments

Comments
 (0)