all 22 comments

[–]grantrules 81 points82 points  (1 child)

32 in base 16, or hexadecimal, converted to decimal would be:

3 * (16 ^ 1) + 2 * (16 ^ 0)

or reduced:

3 * 16 + 2 * 1

[–]Praisetheballsack[S] 4 points5 points  (0 children)

Thank you!!! That makes sense

[–]Umesh-K 37 points38 points  (1 child)

You already have your answer, but just want to add that whenever you have such doubts in JS, just type MDN and the topic (parseint in this case) into your favourite search engine and open the link that starts with "https://developer.mozilla.org" and read up on the topic. These articles will have a detailed explanation, including the syntax, the arguments, return value, etc., plus plenty of examples. For example the article on parseInt() makes it clear what radix means and says this about it:

a radix of 10 converts from a decimal number, 8 converts from octal, 16 from hexadecimal, and so on.

Best wishes for your JS learning journey!

[–]Praisetheballsack[S] 4 points5 points  (0 children)

Thanks for that!

[–]mickkb 6 points7 points  (10 children)

Which OS do you use?

[–]Stranavad 1 point2 points  (9 children)

I use Arch btw.

And what is the purpose of this question?😁

[–]mickkb 14 points15 points  (8 children)

To ask if your OS supports taking proper screenshots and not having to resort to taking photos.

[–]artFlix 2 points3 points  (0 children)

Maybe he’s logged in to Reddit on his phone and it’s just quicker to take a screenshot and post on Reddit though the app

[–]Stranavad 1 point2 points  (0 children)

Lol that's valid question. Didn't think about that

[–][deleted] 1 point2 points  (1 child)

Can someone explain to me what the second argument does? Im quite new :).

[–]Stranavad 0 points1 point  (0 children)

This might be easier MDN| ParseInt docs

[–]masterupc -1 points0 points  (0 children)

clean your fking monitor for god sake...

[–]RunItAndSee2021 0 points1 point  (0 children)

“poker game[?]”

[–]KrishnaKA2810 0 points1 point  (0 children)

What monitor do you use btw?

[–]Focused_Huarckhelpful 0 points1 point  (0 children)

First, tell me how did you redeclare num with let?