How do you convert numbers between different bases in
JavaScript?

Answer Posted / kmbkrishnan

using parseInt(value,base)

Is This Answer Correct ?    23 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I enable javascript on google?

682


What is unobtrusive javascript?

664


The below script is working Internet browser but not working in mozilla plz find that good way... function doSubmit(op){ var rowcount=document.getElementsByName ("parameterTypeId").length; var parameterGrade; var performance; var goal; if(op == "save"){ for (var i=0; i < rowcount; i++) { var param=eval("document.forms [0].parameterGrade"+i); if(param.value != "select"){ return true; } } alert("Please rate atleast one attribute"); return false; }//if ends here

2218


How to read a cookie using javascript?

750


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

694


Which is best for front end?

622


How can you detect the client operating system using javascript?

761


Some XYZ company is arranging for online aptitude tests. Draw detailed E-R diagram for the same..

1828


What is null in js?

654


What is array explain it?

614


What is js injection?

644


What does the enableviewstatemac setting in an aspx page do?

683


Consider the following code: 1 2 3 4 5 (function() { var a = b = 5; })(); console.log(b); what will be printed on the console?

623


Which built-in method returns the calling string value converted to lower case?

918


what are the differences between as2 and as3?

3103