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 are the seven data types of javascript?
What is the use of a typedarray object in javascript?
How to convert javascript date to iso standard?
How to make elements invisible?
What does the term sticky session mean in a web-farm scenario?
What is the difference between innerHTML and innerText?
What are the methods involved in javascript?
What are types of javascript?
Explain javascript debounce function?
Difference between undefined and undeclared variables?
java pgme for class members hours:minutes:seconds then the constructor expects milliseconds as assignment and initialize data members the members function print hh:mm:ss 90,000 milliseconds passed in constructor then the output is 00:01:30
What is Browser Object Model?
What is hoisted in javascript?
How do you name a variable in javascript?
How do you check if an object is an array or not?