What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-22 17:29:04
convert decimal to hex
// function to convert decimal to hexadecimal function convertToHex(element,index,array) { return element.toString(16); } var decArray = new Array(23, 255, 122, 5, 16, 99); var hexArray = decArray.map(convertToHex); alert(hexArray); // 17,ff,a,5,10,63 Add solution