0

In JavaScript, why does this

['10','10','10','10','10'].map(parseInt)

Results in this?

(5) [10, NaN, 2, 3, 4]
Tuomas Toivonen
  • 21,690
  • 47
  • 129
  • 225

0 Answers0