Iterate over Arrays with map

Iterate over Arrays with map
0

#1

Tell us what’s happening:

Your code so far

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

// Only change code below this line.

var newArray = oldArray.map(function(val) {
  return val + 3;  
});

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Safari/604.1.38.

Link to the challenge:


#2

This is the correct answer, so you might have to refresh your browser and try to submit again.


#3

Thanks a lot! The system doesn’t work. I have to refresh page.