Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit fac9385

Browse files
committed
fixes #3249
1 parent a4f1afd commit fac9385

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎1-js/02-first-steps/08-operators/article.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ For instance:
5252
```js run
5353
alert( 5 % 2 ); // 1, a remainder of 5 divided by 2
5454
alert( 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 ); // 23 = 8
6869
alert( 2 ** 4 ); // 24 = 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

7374
For example, a square root is an exponentiation by 1⁄2:
7475

@@ -305,7 +306,7 @@ let n = 2;
305306
306307
n *= 3 + 5; // right part evaluated first, same as n *= 8
307308
308-
alert( n ); // 16
309+
alert( n ); // 16
309310
```
310311

311312
## Increment/decrement

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /