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 to create a cookie using javascript?
What is the use of 'bind' method in JavaScript?
What does === mean in js?
What are the limitations of javascript?
What is a function object?
What is the difference between a web-garden and a web-farm?
What is console.log() and why it is used?
What is the difference between HTMLCollection and NodeList?
What is the use of math object in javascript?
Why javascript is so popular?
How to clone an object in javascript?
What are the data types in js?
How to get value from radiobuttonlist control?
Create a new javascript object with the keys of “fname” equal to your first name, “lname” equal to your last name, and “fcolors” equal to and array of 3 of your favorite colors. Assign this object to a variable called “me” and log it to the console.
What is use of flutter?