Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
How Do You Convert Numbers Between Different Bases In Javascript?
Home
JavaScript
How Do You Convert Numbers Between Different Bases In Javascript?
0
votes
asked
Dec 3, 2019
in
JavaScript
by
rajeshsharma
How Do You Convert Numbers Between Different Bases In Javascript?
#javascript-function
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Dec 3, 2019
by
SakshiSharma
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);
...