From 38b42cf0a41fbb840f5f5bab31ce416c1f9e1c6e Mon Sep 17 00:00:00 2001 From: Omkarnath Parida Date: Sun, 3 Oct 2021 16:57:52 +0530 Subject: [PATCH] Update DecimalToHex.js updated as per `standard.js` --- Conversions/DecimalToHex.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Conversions/DecimalToHex.js b/Conversions/DecimalToHex.js index 4c40a42c2..f13a93e09 100644 --- a/Conversions/DecimalToHex.js +++ b/Conversions/DecimalToHex.js @@ -1,4 +1,4 @@ -function intToHex(num) { +function intToHex (num) { switch (num) { case 10: return 'A' case 11: return 'B' @@ -10,7 +10,7 @@ function intToHex(num) { return num } -function decimalToHex(num) { +function decimalToHex (num) { const hexOut = [] while (num > 15) { hexOut.unshift(intToHex(num % 16))