Which JavaScript method converts to base 10 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Which JavaScript method converts to base 10

I've read on JavaScript number method toString() and how it can be used to convert from base 10. But I want to know if there's a way of converting back to base 10 without the long step I took in my code. https://code.sololearn.com/WsaTCiR6VKUQ/?ref=app

29th Jul 2019, 7:32 AM
Abraham N. Mulbah
Abraham N. Mulbah - avatar
2 Answers
+ 2
Please look at the code. Hope it helps you 😉 https://code.sololearn.com/W2MbX2MpQpbI/?ref=app
29th Jul 2019, 7:46 AM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 2
TheWh¡teCat and Martin Taylor thanks for the knowledge. I'll implement it after studying my regular expression lessons.
29th Jul 2019, 12:59 PM
Abraham N. Mulbah
Abraham N. Mulbah - avatar