• jsomae@lemmy.ml
    link
    fedilink
    arrow-up
    6
    arrow-down
    2
    ·
    edit-2
    22 hours ago

    Okay but this documentation is obviously wrong from the first sentence

    The parseInt() function parses a string argument and returns an integer of the specified radix

    Integers don’t have radices. It should read:

    The parseInt() function parses a string argument representing an integer of the specified radix and returns that integer.

    Either way, I still don’t understand the behaviour in the image. nvm, thanks m_f@discuss.online