I am not able to figure out the mistake. Appreciate any help.
You seem to be in base 10, where in this case, we’re working with Hex value
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.
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.
Congratulations on completing this 21-day Challenge!!!
Thanks! To you too
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.
That clears up my confusion. Thanks so much for the explanation!