Web Technologies
Android
Angular
BootStrap
ECMAScript
HTML
Image Processing
JavaScript
MVC
Onsen UI
React JS
SOAP UI
Vue.js
Cloud/DevOps Technologies
Amazon EC2
Ansible
Augmented Reality
AWS
Azure
Big Data
Cache Teachniques
Cassandra
Commercial Insurance
Cloud
CD
CI
Data Handling
Data using R
Data Science
DevOps
Gradle
Hadoop
HBase
HDFS
Hive
IOT
Jenkins
Machine Learning
MangoDB
NGINX
SOAP UI
Latest Technologies
5G Network
Agile
Android
Arduino
Augmented Reality
Commercial Insurance
C#
C++
Cyber Security
Data Handling
Data using R
Data Science
DBMS
Design-Pattern
Fortify
Ethical Hacking
Framework
GIT
GIT Slack
Image Processing
Java
Jenkins
Jira
JUnit
Kibana
Linux
MangoDB
Oracle
PHP
Python
QTP
R Language
Regression Analysis
Robotic
Salesforce
SAP
Selenium
Service Discovery
Service Now
Spark SQL
Testing
TOGAF
Research Method
Virtual Reality
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
(
23.1k
points)
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
(
30.8k
points)
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
Explain Higher Order Functions in javascript.
asked
Dec 10, 2020
in
JavaScript
by
SakshiSharma
(
30.8k
points)
#function-order
#javascript-function
0
votes
What is an Immediately Invoked Function in JavaScript?
asked
Dec 10, 2020
in
JavaScript
by
SakshiSharma
(
30.8k
points)
#function-invoke
#javascript-function
+1
vote
Function in JavaScript is an object.
asked
Feb 6, 2020
in
JavaScript
by
rajeshsharma
(
23.1k
points)
#javascript-function
+1
vote
Which statement will return the value false?
asked
Feb 6, 2020
in
JavaScript
by
rajeshsharma
(
23.1k
points)
#javascript-function
0
votes
How to convert string of any base to an integer using JavaScript?
asked
Sep 20, 2021
in
JavaScript
by
sharadyadav1986
(
30.6k
points)
integer-string
0
votes
What are the key differences between Java and JavaScript? / How is JavaScript different from Java?
asked
Jun 8, 2022
in
JavaScript
by
sharadyadav1986
(
30.6k
points)
java
javascript
0
votes
Which of these functions of the Number Object would format a number with different numbers of digits to the decimal’s right?
asked
Dec 1, 2022
in
JavaScript
by
john ganales
(
13.1k
points)
javascript
0
votes
Write a program to convert decimal numbers to octal.
asked
Oct 24, 2020
in
JAVA
by
sharadyadav1986
(
30.6k
points)
#convert-decimal-to-octal
#decimal-to-octal
Java-questions-answers
0
votes
Write a program to convert decimal numbers to binary.
asked
Oct 23, 2020
in
JAVA
by
rahuljain1
(
6.0k
points)
#decimal-to-binary-program
#program-decimal-to-binary
Java-questions-answers
0
votes
What are the different ways in which you can define a JavaScript variable?
asked
Sep 19, 2021
in
JavaScript
by
sharadyadav1986
(
30.6k
points)
javascrript-variable
...