How do you convert numbers between different bases in
JavaScript?
Answer Posted / heena
Use the parseInt() function, that takes a string as the
first parameter, and the base as a second parameter. So to
convert hexadecimal 3F to decimal, use parseInt ("3F", 16)
| Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
Is webassembly faster than javascript?
What are the new ways to define a variable in Javascript?
What is javascript in simple terms?
Who introduced javascript?
What are self Executing Functions?
In which location cookies are stored on the hard disk?
Explain the working of timers in javascript?
Where is javascript used most?
Explain why "self" is needed instead of "this".
What is the use of blur function in JavaScript?
How do I open javascript in chrome?
How onclick works in javascript?
How to create a function using function constructor?
What is use strict in javascript?
Why javascript is called lightweight language?