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

news.ycombinator.com · 2026-10-01 · 0 upvotes

log in to save, upvote or flag this.


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

(not in any lists yet)

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