Skip to content

Commit ef344c1

Browse files
fix grammar in Javascript iterator.md (#5941)
1 parent d4a8fba commit ef344c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/javascript/concepts/iterators/iterators.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The **iterator protocol**, by definition, implements the `next()` method and ret
2626

2727
## Example
2828

29-
This range-based iterator, loops through a collection of integers and satisfies the iteration protocols.
29+
This range-based iterator loops through a collection of integers and satisfies the iteration protocols.
3030

3131
```js
3232
function createRangeIterator(min = 0, max = Infinity, step = 1) {
@@ -76,7 +76,7 @@ This will output:
7676

7777
## Codebyte Example
7878

79-
Run the below codebyte example to see how an iterator works with a string:
79+
Run the codebyte example below to see how an iterator works with a string:
8080

8181
```codebyte/javascript
8282
const str = "Hello";

0 commit comments

Comments
 (0)