Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Challenge Waypoint: Iterate over Arrays with map description/code confusion #4059

Closed
Blauelf opened this issue Oct 31, 2015 · 1 comment
Closed

Comments

@Blauelf
Copy link
Contributor

Blauelf commented Oct 31, 2015

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

Use the map function to add 3 to every value in the variable array.

while the sample code is

var oldArray = [1,2,3,4,5];

// Only change code below this line.


var newArray = oldArray;



// Only change code above this line.

(function() {return newArray;})();

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.

@bugron
Copy link
Contributor

bugron commented Oct 31, 2015

@Blauelf thanks for pointing this out, confirmed!


Please review the Guidelines for Contributing, thank you!.


@bugron bugron added confirmed first timers only Open for anyone doing contributions for first time. You do not need permission to work on these. labels Oct 31, 2015
BerkeleyTrue referenced this issue Nov 1, 2015
…ng-map-#4059

fix unclear description and lack of usage in the editor.
@ghost 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants