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);
Related questions
0
votes
Q: Explain Higher Order Functions in javascript.
asked
Dec 10, 2020
in
JavaScript
by
SakshiSharma
#function-order
#javascript-function
0
votes
Q: What is an Immediately Invoked Function in JavaScript?
asked
Dec 10, 2020
in
JavaScript
by
SakshiSharma
#function-invoke
#javascript-function
+1
vote
Q: Function in JavaScript is an object.
asked
Feb 6, 2020
in
JavaScript
by
rajeshsharma
#javascript-function
+1
vote
Q: Which statement will return the value false?
asked
Feb 6, 2020
in
JavaScript
by
rajeshsharma
#javascript-function
0
votes
Q: How do you convert date to another timezone in javascript?
asked
Oct 7, 2023
in
JavaScript
by
GeorgeBell
javascript-interview-questions-answers
0
votes
Q: How to convert a string to numbers in C?
asked
Jan 11
in
C Plus Plus
by
GeorgeBell
c-interview-questions-answers
0
votes
Q: How to convert string to title case with javascript?
asked
Oct 7, 2023
in
JavaScript
by
GeorgeBell
javascript-interview-questions-answers
0
votes
Q: How to convert string of any base to an integer using JavaScript?
asked
Sep 20, 2021
in
JavaScript
by
sharadyadav1986
integer-string
0
votes
Q: How do you rounding numbers to certain decimals?
asked
Oct 21, 2023
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Q: How do you print numbers with commas as thousand separators?
asked
Oct 15, 2023
in
JavaScript
by
GeorgeBell
javascript-interview-questions-answers
...