Skip to content

Commit 8f233a9

Browse files
committed
fix: Correct console output comments in README.md for arithmetic operations
1 parent 9ad9f60 commit 8f233a9

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

README.md

+7-10
Original file line numberDiff line numberDiff line change
@@ -582,28 +582,25 @@ console.log(cars instanceof Boolean); // Output: false
582582
let x = 5;
583583
let y = 10;
584584

585-
x = y; // x = y (x is now 10)
586-
console.log(x); // Output: 5
587-
588-
x += y; // x = x + y (x is now 15)
585+
x += y; // x = x + y
589586
console.log(x); // Output: 15
590587

591-
x -= y; // x = x - y (x is now 5)
588+
x -= y; // x = x - y
592589
console.log(x); // Output: 5
593590

594-
x *= y; // x = x * y (x is now 50)
591+
x *= y; // x = x * y
595592
console.log(x); // Output: 50
596593

597-
x /= y; // x = x / y (x is now 5)
594+
x /= y; // x = x / y
598595
console.log(x); // Output: 5
599596

600-
x %= y; // x = x % y (x is now 5)
597+
x %= y; // x = x % y
601598
console.log(x); // Output: 5
602599

603-
x **= y; // x = x ** y (x is now 9765625)
600+
x **= y; // x = x ** y
604601
console.log(x); // Output: 9765625
605602

606-
x : y; // x = y (x is now 10)
603+
x = y; // x = y
607604
console.log(x); // Output: 10
608605
```
609606

0 commit comments

Comments
 (0)