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 can a Javascript code redirect the user to a different page?
Is function a data type in javascript?
What is jscript used for?
What is callback?
How can a page be forced to load another page in javascript?
Is javascript faster than asp script?
What does a typeof operator do?
Is javascript a security risk?
What's the purpose of javascript?
How much do javascript programmers make?
What are the different types of errors available in javascript?
How can we detect os of the client machine using javascript?
What is the difference between java & javascript?
What are the two basic groups of dataypes in javascript?
What is javascript used for on iphone?