Iterate over Arrays with map

Tell us what’s happening:

Your code so far

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

// Only change code below this line.

var newArray = {
  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:

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

1 Like

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