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
What is null variable?
What is === in javascript?
What is the use of a number object in javascript?
What are undefined and undeclared variables?
Can array in javascript be extended?
How do you define a class and its constructor?
What is an Event Bubbling in Javascript?
How we can get the value of an element using javascript?
What are the string methods?
What is javascript and how it works?
What are the four basic data structures in javascript?
How do I turn off javascript in chrome?
List html dom mouse events?
Which keyword is used to print the text in the screen?
How to setting a cookie with the contents of a textbox?