Updated variable reference.

Updated variable reference in "Waypoint: Iterate over Arrays with .map" from ```array``` to ```oldArray``` to match up with the given variable name in the program.
This commit is contained in:
Josh Wein
2015-11-21 16:50:28 -05:00
parent 0fb2cf78d5
commit cf4e88f189

View File

@ -263,7 +263,7 @@
"",
"The <code>map</code> method will iterate through every element of the array, creating a new array with values that have been modified by the callback function, and return it.",
"In our example the callback only uses the value of the array element (the <code>val</code> argument) but your callback can also include arguments for the <code>index</code> and <code>array</code> being acted on.",
"Use the map function to add 3 to every value in the variable <code>array</code>."
"Use the map function to add 3 to every value in the variable <code>oldArray</code>."
],
"tests":[
"assert.deepEqual(newArray, [4,5,6,7,8], 'message: You should add three to each value in the array.');",