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
Explain javascript debounce function?
What does clean white space mean?
How will you get the checkbox status whether it is checked or not?
How do I write script-generated content to another window?
Is javascript backend or frontend?
Explain window.onload and ondocumentready?
List some data types supported by javascript?
What is camelcase in programming?
Difference between Client side JavaScript and Server side JavaScript?
What is the role of break and continue statements?
What makes something a function?
What is memory leak in javascript?
What is the use of isNaN function?
What are the Non-primitive data types in JavaScript?
What is meant by vanilla javascript?