in JavaScript by
How Do You Convert Numbers Between Different Bases In Javascript?

1 Answer

0 votes
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
asked Sep 20, 2021 in JavaScript by sharadyadav1986
0 votes
asked Oct 24, 2020 in JAVA by sharadyadav1986
+1 vote
asked Dec 4, 2019 in JavaScript by SakshiSharma