Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Explain javascript debounce function?

1023


What does clean white space mean?

843


How will you get the checkbox status whether it is checked or not?

864


How do I write script-generated content to another window?

939


Is javascript backend or frontend?

868


Explain window.onload and ondocumentready?

905


List some data types supported by javascript?

904


What is camelcase in programming?

827


Difference between Client side JavaScript and Server side JavaScript?

1688


What is the role of break and continue statements?

923


What makes something a function?

935


What is memory leak in javascript?

905


What is the use of isNaN function?

942


What are the Non-primitive data types in JavaScript?

988


What is meant by vanilla javascript?

957