Skip to content

Commit e5eeba5

Browse files
authored
Update 9-log-the-remainder.js
1 parent 4176904 commit e5eeba5

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11

22
let x = 7;
3-
x = x % 3 ; // new value of x will be 1 as it's remainder when it's divided by three is 1.
3+
x = x % 3 ; // the new value of x will be 1 as it's remainder when it's divided by three is 1.
44
console.log(x); // we will see it is 1.
55

6-
let y = 21; // Their value would be the same.Because we didn't assign a new value to them.
7-
let z = 13;
6+
let y = 21; // the new value of y will be 1 .
7+
let z = 13; // the new value of z will be 1 .
88

9-
console.log(y); /* We can see they still have their initial values.
10-
Because the remainder includes x but not y and z.*/
11-
console.log(z);
9+
console.log(y);
10+
11+
console.log(z);

0 commit comments

Comments
 (0)