Skip to content

Commit 3d595bc

Browse files
authored
Merge pull request vJechsmayr#45 from qdtroemner/patch-2
Added Decimal To Octal Conversion (Issue vJechsmayr#41)
2 parents a2caf88 + 908f0f9 commit 3d595bc

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎NumberConvertions/DecimalToOctal‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
function decimalToOctal(num) {
2+
return num.toString(8);
3+
}
4+
5+
console.log(decimalToOctal(9));

0 commit comments

Comments
 (0)