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
How do I open javascript in browser?
List some unit testing frameworks javascript
How can you create an Object in JavaScript?
What is scope chain in javascript?
How to remove the event listener?
What is class example?
What is console.log()?
Is a javascript script faster than an asp script?
What is a closure and how do you use it?
Should you disable javascript?
What is createtextnode?
How to use strings as array indexes using javascript?
What is JavaScript?
How do I retrieve a cookie with a given name using a regular expression?
Explain hoisting in javascript?