21 Day Coding Challenge

Challenge 21, please help


I am not able to figure out the mistake. Appreciate any help.


Hi Debjani,
You seem to be in base 10, where in this case, we’re working with Hex value :slight_smile:

The broadcast() function returns a coded-message from Earth with the correct coordinate to return home in HEX!

Change the decoded hex-coordinate to an integer using `parseInt()

I believe it’s the only thing holding you back, though this one is harder to test locally. :wink:

Here’s some info on how to use parseInt.


Yes! It worked… Thanks so much. I thought it should be any number between 0 - 36. My bad.

1 Like

Wonderful! :slight_smile:

Congratulations on completing this 21-day Challenge!!! :partying_face:



Thanks! To you too :grinning:

1 Like

The radix for parseInt() can be any number 2-36.
Hexadecimal is base 16 (0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f).

The math we learn in grade school is called decimal or base 10 (0,1,2,3,4,5,6,7,8,9).
Most computer logic is fundamentally executed in binary or base 2 (0,1).

1 Like

Hi Justin,
have you ever used octal? You skimmed over them, but I’ve always wondered what they’re for. Binary, I did in assembly language, Hexa, I use on a regular basis, but never did octal.


I’ve never actually seen octal in use. I used binary while learning Assembly a few years ago as well. Doing division with bitwise operations was interesting.

1 Like

That clears up my confusion. Thanks so much for the explanation!