File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
1-js/02-first-steps/08-operators Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ For instance:
5252` ` ` js run
5353alert( 5 % 2 ); // 1, a remainder of 5 divided by 2
5454alert( 8 % 3 ); // 2, a remainder of 8 divided by 3
55+ alert( 8 % 4 ); // 2, 0 remainder of 8 divided by 4
5556` ` `
5657
5758### Exponentiation **
@@ -68,7 +69,7 @@ alert( 2 ** 3 ); // 2³ = 8
6869alert( 2 ** 4 ); // 2⁴ = 16
6970` ` `
7071
71- Just like in maths, the exponentiation operator is defined for non- integer numbers as well.
72+ Just like in maths, the exponentiation operator is defined for non- integer numbers as well.
7273
7374For example, a square root is an exponentiation by ½:
7475
@@ -305,7 +306,7 @@ let n = 2;
305306
306307n *= 3 + 5; // right part evaluated first, same as n *= 8
307308
308- alert( n ); // 16
309+ alert( n ); // 16
309310` ` `
310311
311312## Increment/ decrement
You can’t perform that action at this time.
0 commit comments