OsrsNeedsF2P@lemmy.ml to Programmer Humor@programming.dev · 22 hours agoparseInt(5)lemmy.mlimagemessage-square59linkfedilinkarrow-up1424arrow-down15
arrow-up1419arrow-down1imageparseInt(5)lemmy.mlOsrsNeedsF2P@lemmy.ml to Programmer Humor@programming.dev · 22 hours agomessage-square59linkfedilink
minus-squarejsomae@lemmy.mllinkfedilinkarrow-up5arrow-down2·edit-213 hours 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 m_f@discuss.online
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 m_f@discuss.online