Skip to content

Commit 64c4314

Browse files
authored
fix: semicolons (4-22)
1 parent 04d9ab9 commit 64c4314

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

4-loops/22-based-numbers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ let binary = "";
77
// With for loop
88
for (let i = myNumber; i >= 1 ; i = Math.floor(i/2)) {
99
if (i % 2 == 0) {
10-
binary = "0" + binary
10+
binary = "0" + binary;
1111
} else {
1212
binary = "1" + binary;
1313
}
1414
}
1515

1616
// With while loop
17-
let i = myNumber
17+
let i = myNumber;
1818
while (i >= 1) {
1919
if (i % 2 == 0) {
2020
binary = "0" + binary;

0 commit comments

Comments
 (0)