mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2026-03-13 15:21:15 +08:00
Fixed Whitespace, Operators, and Quotes to Comply with JSLint
I modified the whitespace in the files and changed single quotes to double quotes. I also changed some `==` and `!=` operators to `===` and `!==` to comply with JSLint.
This commit is contained in:
@@ -4,7 +4,7 @@ function decimalToBinary(num) {
|
||||
bin.unshift(num % 2);
|
||||
num >>= 1; // basically /= 2 without remainder if any
|
||||
}
|
||||
console.log("The decimal in binary is " + bin.join(''));
|
||||
console.log("The decimal in binary is " + bin.join(""));
|
||||
}
|
||||
|
||||
decimalToBinary(2);
|
||||
|
||||
Reference in New Issue
Block a user