$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · easy · #225

What goes in the blank?

// add one to every number
const bumped = nums.____((n) => n + 1);

Answer: map (also accepted: map, map())

map() builds a new array from each callback result.
Play Problem Solving ▸