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
Use the map function to add 3 to every value in the variable array.
while the sample code is
varoldArray=[1,2,3,4,5];// Only change code below this line.varnewArray=oldArray;// Only change code above this line.(function(){returnnewArray;})();
Given the context, one could understand the usage of array here, and guess from the code what you are supposed to do.
However, in the help chat I frequently encounter people who are confused by this, mix everything, and ask why their code won't pass. I would suggest changing the description to mention the variable oldArray instead of the variable array.
The text was updated successfully, but these errors were encountered:
…ng-map-#4059
fix unclear description and lack of usage in the editor.
ghost
removed
the
first timers only
Open for anyone doing contributions for first time. You do not need permission to work on these.
label
May 10, 2016
Challenge Waypoint: Iterate over Arrays with map
There seems to be an issue with the task description and the sample code. The task description says
while the sample code is
Given the context, one could understand the usage of
array
here, and guess from the code what you are supposed to do.However, in the help chat I frequently encounter people who are confused by this, mix everything, and ask why their code won't pass. I would suggest changing the description to mention the variable
oldArray
instead of the variablearray
.The text was updated successfully, but these errors were encountered: