Skip to content

Commit 1badbf6

Browse files
authored
Merge pull request #857 from tarunl2002/patch-1
Update README.md
2 parents 7d4acb3 + baf024e commit 1badbf6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

2-js-basics/4-arrays-loops/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ iceCreamFlavors.length; //5
6868

6969
## Loops
7070

71-
Loops allow for repetitive or **iterative** tasks, and can save a lot of time and code. Each iteration can vary in their variables, values, and conditions. There are different types of loops in JavaScript, and they have small differences, but essentially do the same thing: loop over data.
71+
Loops allow us to perform repetitive or **iterative** tasks, and can save a lot of time and code. Each iteration can vary in their variables, values, and conditions. There are different types of loops in JavaScript, and they all have small differences, but essentially do the same thing: loop over data.
7272

7373
### For Loop
7474

@@ -88,7 +88,7 @@ for (let i = 0; i < 10; i++) {
8888

8989
### While loop
9090

91-
Unlike the syntax for the `for` loop, `while` loops only require a condition that will stop the loop when `false`. Conditions in loops usually rely on other values like counters, and must be managed during the loop. Starting values for counters must be created outside the loop, and any expressions to meet a condition, including changing the counter must be maintained inside the loop.
91+
Unlike the syntax of the `for` loop, `while` loops only require a condition that will stop the loop when the condition becomes `false`. Conditions in loops usually rely on other values like counters, and must be managed during the loop. Starting values for counters must be created outside the loop, and any expressions to meet a condition, including changing the counter must be maintained inside the loop.
9292

9393
```javascript
9494
//Counting up to 10
@@ -127,7 +127,7 @@ There are other ways of looping over arrays other than for and while loops. Ther
127127

128128
## Review & Self Study
129129

130-
Arrays in JavaScript have many methods attached to them, extremely useful for data manipulation. [Read up on these methods](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array) and try some of them out (like push, pop, slice and splice) on an array of your creation.
130+
Arrays in JavaScript have many methods attached to them, that are extremely useful for data manipulation. [Read up on these methods](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array) and try some of them out (like push, pop, slice and splice) on an array of your creation.
131131

132132
## Assignment
133133

0 commit comments

Comments
 (0)