Skip to content
This repository was archived by the owner on Sep 22, 2021. It is now read-only.

Commit 7bdd7bb

Browse files
authored
Another way to convert decimal to octal
1 parent 5614404 commit 7bdd7bb

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎NumberConvertions/DecimalToOctal.js‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ function decimalToOctal(num) {
33
}
44

55
console.log(decimalToOctal(9));
6+
7+
const decimalToOctalExpression = (number) => (number.toString(8));
8+
9+
console.log(decimalToOctalExpression(9));

0 commit comments

Comments
 (0)