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 = 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:
https://www.freecodecamp.org/challenges/iterate-over-arrays-with-map

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