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

all possible test cases for normal number field,name field date field,check box,

1388


What kind of conditional statements does JavaScript support?

917


What Is The Disadvantages Using InnerHTML In JavaScript?

954


What is the use of a number object in javascript?

940


What does the operator do in javascript?

855


How can you convert the string of any base to integer in JavaScript?

1006


What are the variable naming conventions in javascript?

930


what is lazy fetching in hibernate

1937


What is the use of blur function?

904


How many types of functions JavaScript supports?

990


what are the differences between as2 and as3?

3386


In a java script, what is the difference between "==" and "===" operator?

985


Is javascript backend or frontend?

845


What is new keyword in javascript?

825


What are javascript closures?when would you use them?

896