diff --git a/Conversions/DecimalToOctal.js b/Conversions/DecimalToOctal.js index 5d37a56870..6f9184b5ab 100644 --- a/Conversions/DecimalToOctal.js +++ b/Conversions/DecimalToOctal.js @@ -1,7 +1,8 @@ function decimalToOctal (num) { - var oct = 0; var c = 0 + let oct = 0 + let c = 0 while (num > 0) { - var r = num % 8 + const r = num % 8 oct = oct + (r * Math.pow(10, c++)) num = Math.floor(num / 8) // basically /= 8 without remainder if any }
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: