You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -131,7 +131,7 @@ Calculating an average is an extremely common task. Let's practice it a bit.
131
131
1. Find the sum as we did in the first exercise
132
132
2. Take the sum from step 1, and divide it by the number of elements in the list.
133
133
134
-
### Iteration 5: Level 1: Array of Numbers
134
+
### Level 1: Array of Numbers
135
135
136
136
Write a function `averageNumbers` that receives an array of numbers and calculate the average of the numbers:
137
137
@@ -141,7 +141,7 @@ Write a function `averageNumbers` that receives an array of numbers and calculat
141
141
var numbers = [2, 6, 9, 10, 7, 4, 1, 9];
142
142
```
143
143
144
-
### Iteration 6: Level 2: Array of Strings
144
+
### Level 2: Array of Strings
145
145
146
146
Write a function `averageWordLength` that receives an array of words and calculate the average length of the words:
147
147
@@ -162,7 +162,7 @@ var words = [
162
162
];
163
163
```
164
164
165
-
## Iteration 7: Unique Arrays
165
+
## Iteration 5: Unique Arrays
166
166
167
167
Take the following array, remove the duplicates, and return a new array. You're more than likely going to want to check out the [`indexOf`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf) function.
168
168
@@ -187,7 +187,7 @@ var words = [
187
187
188
188
```
189
189
190
-
## Iteration 8: Finding Elements
190
+
## Iteration 6: Finding Elements
191
191
192
192
Let's create a simple array search.
193
193
@@ -207,7 +207,7 @@ var words = [
207
207
];
208
208
```
209
209
210
-
## Iteration 9: Counting Repetion
210
+
## Iteration 7: Counting Repetion
211
211
212
212
Write a function `howManyTimes` that will take in an array of words as one argument, and a word to search for as the other. The function will return the number of times that word appears in the array.
0 commit comments