0

In JavaScript, why does this

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

Results in this?

(5) [10, NaN, 2, 3, 4]
Tuomas Toivonen
  • 18,478
  • 39
  • 108
  • 200

0 Answers0