Skip to content

Commit 38b42cf

Browse files
authored
Update DecimalToHex.js
updated as per `standard.js`
1 parent c35b20a commit 38b42cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Conversions/DecimalToHex.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function intToHex(num) {
1+
function intToHex (num) {
22
switch (num) {
33
case 10: return 'A'
44
case 11: return 'B'
@@ -10,7 +10,7 @@ function intToHex(num) {
1010
return num
1111
}
1212

13-
function decimalToHex(num) {
13+
function decimalToHex (num) {
1414
const hexOut = []
1515
while (num > 15) {
1616
hexOut.unshift(intToHex(num % 16))

0 commit comments

Comments
 (0)