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