Fixing non compliant files (Ciphers, Conversions and Data Structures)

This commit is contained in:
Juliano Nunes
2020-05-03 21:26:52 -03:00
parent 14bab1b931
commit 2e0bd65b0c
8 changed files with 293 additions and 264 deletions

View File

@ -11,12 +11,12 @@ function intToHex (num) {
}
function decimalToHex (num) {
const hex_out = []
const hexOut = []
while (num > 15) {
hex_out.push(intToHex(num % 16))
hexOut.push(intToHex(num % 16))
num = Math.floor(num / 16)
}
return intToHex(num) + hex_out.join('')
return intToHex(num) + hexOut.join('')
}
// test cases