Languages
[Edit]
EN

JavaScript - convert hex to int

4 points
Created by:
AnnLen
13390

 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

JavaScript conversion

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