Skip to content

Commit

Permalink
else maybe called keyword better. (#36015)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cecil0o0 authored Sep 23, 2024
1 parent ed06a82 commit 9e8b775
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ if (iceCream === "chocolate") {
}
```

The expression inside the `if ()` is the test. This uses the strict equality operator (as described above) to compare the variable `iceCream` with the string `chocolate` to see if the two are equal. If this comparison returns `true`, the first block of code runs. If the comparison is not true, the second block of code—after the `else` statement—runs instead.
The expression inside the `if ()` is the test. This uses the strict equality operator (as described above) to compare the variable `iceCream` with the string `chocolate` to see if the two are equal. If this comparison returns `true`, the first block of code runs. If the comparison is not true, the second block of code—after the `else` keyword—runs instead.

### Functions

Expand Down

0 comments on commit 9e8b775

Please sign in to comment.