@@ -97,7 +97,7 @@ Write a function `findLongestWord` that takes an array of words and returns the
97
97
** Starter Code**
98
98
99
99
``` javascript
100
- var words = [
100
+ const words = [
101
101
' mystery' ,
102
102
' brother' ,
103
103
' aviator' ,
@@ -119,7 +119,7 @@ Create a `sumArray` function that takes an array of numbers as a parameter, and
119
119
** Starter Code**
120
120
121
121
``` javascript
122
- var numbers = [6 , 12 , 1 , 18 , 13 , 16 , 2 , 1 , 8 , 10 ];
122
+ const numbers = [6 , 12 , 1 , 18 , 13 , 16 , 2 , 1 , 8 , 10 ];
123
123
```
124
124
125
125
## Iteration #4 : Calculate the Average
@@ -138,7 +138,7 @@ Write a function `averageNumbers` that receives an array of numbers and calculat
138
138
** Starter Code**
139
139
140
140
``` javascript
141
- var numbers = [2 , 6 , 9 , 10 , 7 , 4 , 1 , 9 ];
141
+ const numbers = [2 , 6 , 9 , 10 , 7 , 4 , 1 , 9 ];
142
142
```
143
143
144
144
### Level 2: Array of Strings
@@ -148,7 +148,7 @@ Write a function `averageWordLength` that receives an array of words and calcula
148
148
** Starter Code**
149
149
150
150
``` javascript
151
- var words = [
151
+ const words = [
152
152
' seat' ,
153
153
' correspond' ,
154
154
' linen' ,
@@ -171,7 +171,7 @@ Do this in the form of a function `uniquifyArray` that receives an array of word
171
171
** Starter Code**
172
172
173
173
``` javascript
174
- var words = [
174
+ const words = [
175
175
' crab' ,
176
176
' poison' ,
177
177
' contagious' ,
@@ -195,7 +195,7 @@ Write a function `doesWordExist` that will take in an array of words as one argu
195
195
196
196
** Starter Code**
197
197
``` javascript
198
- var words = [
198
+ const words = [
199
199
' machine' ,
200
200
' subset' ,
201
201
' trouble' ,
@@ -214,7 +214,7 @@ Write a function `howManyTimes` that will take in an array of words as one argum
214
214
** Starter Code**
215
215
216
216
``` javascript
217
- var words = [
217
+ const words = [
218
218
' machine' ,
219
219
' matter' ,
220
220
' subset' ,
@@ -236,7 +236,7 @@ In the × ばつ 20 grid below; What is the greatest product of four adjacent numbers
236
236
Write a function ` greatestProduct ` to find the answer!
237
237
238
238
``` javascript
239
- var matrix = [
239
+ const matrix = [
240
240
[08 ,02 ,22 ,97 ,38 ,15 ,00 ,40 ,00 ,75 ,04 ,05 ,07 ,78 ,52 ,12 ,50 ,77 ,91 ,08 ],
241
241
[49 ,49 ,99 ,40 ,17 ,81 ,18 ,57 ,60 ,87 ,17 ,40 ,98 ,43 ,69 ,48 ,04 ,56 ,62 ,00 ],
242
242
[81 ,49 ,31 ,73 ,55 ,79 ,14 ,29 ,93 ,71 ,40 ,67 ,53 ,88 ,30 ,03 ,49 ,13 ,36 ,65 ],
0 commit comments