OsrsNeedsF2P@lemmy.ml to Programmer Humor@programming.dev · 5 days agoparseInt(5)imagemessage-square66fedilinkarrow-up1496
arrow-up1496imageparseInt(5)OsrsNeedsF2P@lemmy.ml to Programmer Humor@programming.dev · 5 days agomessage-square66fedilink
minus-squarejsomae@lemmy.mllinkfedilinkarrow-up6·edit-25 days agoOkay 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 [email protected]
Okay but this documentation is obviously wrong from the first sentence
Integers don’t have radices. It should read:
Either way, I still don’t understand the behaviour in the image.nvm, thanks [email protected]