We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4176904 commit e5eeba5Copy full SHA for e5eeba5
1 file changed
Week1/Js-exercises/9-log-the-remainder.js
@@ -1,11 +1,11 @@
1
2
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.
+x = x % 3 ; // the new value of x will be 1 as it's remainder when it's divided by three is 1.
4
console.log(x); // we will see it is 1.
5
6
-let y = 21; // Their value would be the same.Because we didn't assign a new value to them.
7
-let z = 13;
+let y = 21; // the new value of y will be 1 .
+let z = 13; // the new value of z will be 1 .
8
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);
+console.log(y);
+
+console.log(z);
0 commit comments