parseInt() - understanding radix

I am trying to understand what the purpose of radix parameter would be, correct me
if i am wrong does thins try to find the square root of the converted string to integer?

parseInt() function handle the integer

No. Radix is also commonly called base. It will have been mentioned in your primary/elementary/etc school (whatever your country’s equivalent level) maths class. Base 10 is decimal, and it’s what is normally used. Base 2 is binary, which is what computers use. Base 60 is what is used for clocks. And so on. It tells you how many unique numbers are used in a number system. So decimal has 10: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. Binary has 2: 0, 1.

parseInt takes a string and converts it to an integer. You can specify what base that string is, so if you have a binary number like “101010”, you can tell the function it is base 2 and it will convert it to an integer (otherwise it would just tell you the integer was 101010 when in fact it is 42)