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

What is null variable?

1094


What is === in javascript?

957


What is the use of a number object in javascript?

932


What are undefined and undeclared variables?

905


Can array in javascript be extended?

835


How do you define a class and its constructor?

919


What is an Event Bubbling in Javascript?

979


How we can get the value of an element using javascript?

926


What are the string methods?

888


What is javascript and how it works?

896


What are the four basic data structures in javascript?

933


How do I turn off javascript in chrome?

872


List html dom mouse events?

834


Which keyword is used to print the text in the screen?

989


How to setting a cookie with the contents of a textbox?

949