@@ -97,7 +97,7 @@ Write a function `findLongestWord` that takes an array of words and returns the
9797** Starter Code**
9898
9999``` javascript
100- var words = [
100+ const words = [
101101 ' mystery' ,
102102 ' brother' ,
103103 ' aviator' ,
@@ -119,7 +119,7 @@ Create a `sumArray` function that takes an array of numbers as a parameter, and
119119** Starter Code**
120120
121121``` 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 ];
123123```
124124
125125## Iteration #4 : Calculate the Average
@@ -138,7 +138,7 @@ Write a function `averageNumbers` that receives an array of numbers and calculat
138138** Starter Code**
139139
140140``` javascript
141- var numbers = [2 , 6 , 9 , 10 , 7 , 4 , 1 , 9 ];
141+ const numbers = [2 , 6 , 9 , 10 , 7 , 4 , 1 , 9 ];
142142```
143143
144144### Level 2: Array of Strings
@@ -148,7 +148,7 @@ Write a function `averageWordLength` that receives an array of words and calcula
148148** Starter Code**
149149
150150``` javascript
151- var words = [
151+ const words = [
152152 ' seat' ,
153153 ' correspond' ,
154154 ' linen' ,
@@ -171,7 +171,7 @@ Do this in the form of a function `uniquifyArray` that receives an array of word
171171** Starter Code**
172172
173173``` javascript
174- var words = [
174+ const words = [
175175 ' crab' ,
176176 ' poison' ,
177177 ' contagious' ,
@@ -195,7 +195,7 @@ Write a function `doesWordExist` that will take in an array of words as one argu
195195
196196** Starter Code**
197197``` javascript
198- var words = [
198+ const words = [
199199 ' machine' ,
200200 ' subset' ,
201201 ' trouble' ,
@@ -214,7 +214,7 @@ Write a function `howManyTimes` that will take in an array of words as one argum
214214** Starter Code**
215215
216216``` javascript
217- var words = [
217+ const words = [
218218 ' machine' ,
219219 ' matter' ,
220220 ' subset' ,
@@ -236,7 +236,7 @@ In the 20×20 grid below; What is the greatest product of four adjacent numbers
236236Write a function ` greatestProduct ` to find the answer!
237237
238238``` javascript
239- var matrix = [
239+ const matrix = [
240240 [08 ,02 ,22 ,97 ,38 ,15 ,00 ,40 ,00 ,75 ,04 ,05 ,07 ,78 ,52 ,12 ,50 ,77 ,91 ,08 ],
241241 [49 ,49 ,99 ,40 ,17 ,81 ,18 ,57 ,60 ,87 ,17 ,40 ,98 ,43 ,69 ,48 ,04 ,56 ,62 ,00 ],
242242 [81 ,49 ,31 ,73 ,55 ,79 ,14 ,29 ,93 ,71 ,40 ,67 ,53 ,88 ,30 ,03 ,49 ,13 ,36 ,65 ],
0 commit comments