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

How do I open javascript in browser?

974


List some unit testing frameworks javascript

935


How can you create an Object in JavaScript?

1142


What is scope chain in javascript?

993


How to remove the event listener?

943


What is class example?

1088


What is console.log()?

949


Is a javascript script faster than an asp script?

976


What is a closure and how do you use it?

986


Should you disable javascript?

949


What is createtextnode?

909


How to use strings as array indexes using javascript?

1048


What is JavaScript?

1916


How do I retrieve a cookie with a given name using a regular expression?

914


Explain hoisting in javascript?

1053