Languages
[Edit]
EN

JavaScript - convert int to hex

8 points
Created by:
AnnLen
12400

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

Quick solution:

// ONLINE-RUNNER:browser;

var intNumber = 26085;
var hexNumber = intNumber.toString(16);

console.log(hexNumber); // 65e5
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