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 / venkateswaran

using Number() function we can converts the value of an
object to a number.

Example:

var test1= new Boolean(true);
var test2= new Date();
var test3= new String("999");
document.write(Number(test1)+ "<br />");
document.write(Number(test2)+ "<br />");
document.write(Number(test3)+ "<br />");

Is This Answer Correct ?    11 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What will happen if an infinite while loop is run in Javascript?

995


What is dom in javascript?

990


How do you check if an object is an array or not?

971


What are different types of popup boxes available in javascript?

957


What is javascript used for on iphone?

909


Which is faster jquery or javascript?

938


What are the different functional component in javascript?

906


What are associative arrays in javascript?

1045


What does the delete operator do?

924


Difference between the substr() and substring() in JavaScript?

1046


What is node value?

931


What is namespacing in javascript and how is it used?

950


What are the data types available in javascript? Explain

933


What is difference between callback and promise?

911


What is use of settimeout function in javascript?

1091