Languages
[Edit]
EN

JavaScript - convert hex to int

4 points
Created by:
AnnLen
12400

 In this short article, we would like to show how to convert hexadecimal numbers (hex numbers) to integer numbers using JavaScript.

// ONLINE-RUNNER:browser;

var hexNumber = '65e5';
var intNumber = parseInt(hexNumber, 16);

console.log(intNumber); // 26085
Native Advertising
­čÜÇ
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

ÔŁĄ´ŞĆ­čĺ╗ ­čÖé

Join