mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2026-03-13 15:21:15 +08:00
style: Fixed most styles (according to standardjs)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
function decimalToBinary (num) {
|
||||
var bin = []
|
||||
const bin = []
|
||||
while (num > 0) {
|
||||
bin.unshift(num % 2)
|
||||
num >>= 1 // basically /= 2 without remainder if any
|
||||
|
||||
Reference in New Issue
Block a user