← Back to Tags

Quirks - Tag

2016

  • JS Quirks: stringified numbers
    #javascript #quirks

    JavaScript quirk: stringified negative binary, octal, and hex numbers like '-0x1' return NaN when converted to numbers because only decimal literals can have signs per ECMAScript spec.