mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2026-03-13 15:21:15 +08:00
Conversions algorithms : remove live code & console.log.
This commit is contained in:
@@ -10,6 +10,10 @@ function octalToDecimal (num) {
|
||||
return dec
|
||||
}
|
||||
|
||||
// test cases
|
||||
console.log(octalToDecimal(56) === 46)
|
||||
console.log(octalToDecimal(2365) === 1269)
|
||||
export { octalToDecimal }
|
||||
|
||||
// > octalToDecimal(56)
|
||||
// 46
|
||||
|
||||
// > octalToDecimal(2365)
|
||||
// 1269
|
||||
|
||||
Reference in New Issue
Block a user