LINKED LIST [txt mode] ▸ Why ['1', '7', '11'].map(parseInt) re...
home explore | log in

Why ['1', '7', '11'].map(parseInt) returns [1, NaN, 3] in Javascript

medium.com · first added by @afreshcup · 2026-09-30 · 1 upvotes

log in to save, upvote or flag this.


─── In 0 lists ─────────────────────────────────────────

(not in any lists yet)


─── Discussions ────────────────────────────────────────

* Why ['1', '7', '11'].map(parseInt) returns [1, NaN, 3] in JavaScript
113 pts · 150 comments · node

─── From the discussion ────────────────────────────────

* Wat
destroyallsoftware.com · node
* parseInt() - JavaScript | MDN
developer.mozilla.org · node
* radix - ESLint - Pluggable JavaScript Linter
eslint.org · node
* Array.prototype.map() - JavaScript | MDN
developer.mozilla.org · node