I know this is for fun, but as general advice to the homies, if a language or system is doing something you didn’t expect, make sure to look at the documentation
But I’m too busy being confused by the behaviors of libraries I previously didn’t read the documentation for, to read the documentation for every new library I adopt.
I know this is for fun, but as general advice to the homies, if a language or system is doing something you didn’t expect, make sure to look at the documentation
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt
This will save a lot of time and headaches
I’d advise to always look into the corresponding documentation before using something from any library.
But I’m too busy being confused by the behaviors of libraries I previously didn’t read the documentation for, to read the documentation for every new library I adopt.
(This is sarcasm…mostly.)
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