mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 16:26:47 +08:00
Added the standard javascript style
This commit is contained in:
@ -8,7 +8,7 @@ function octalToDecimal (num) {
|
|||||||
base = base * 8
|
base = base * 8
|
||||||
}
|
}
|
||||||
return dec
|
return dec
|
||||||
}
|
}
|
||||||
|
|
||||||
// test cases
|
// test cases
|
||||||
console.log(octalToDecimal(56) === 46)
|
console.log(octalToDecimal(56) === 46)
|
||||||
|
Reference in New Issue
Block a user