mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-06 01:18:23 +08:00
fixed alert
This commit is contained in:
@ -16,7 +16,7 @@ function decimalToHex(num){
|
|||||||
hex_out.push(intToHex(num%16));
|
hex_out.push(intToHex(num%16));
|
||||||
num = Math.floor(num / 16);
|
num = Math.floor(num / 16);
|
||||||
}
|
}
|
||||||
return intToHex(num) + return hex_out.join("");
|
return intToHex(num) + hex_out.join("");
|
||||||
}
|
}
|
||||||
|
|
||||||
// test cases
|
// test cases
|
||||||
|
Reference in New Issue
Block a user