Skip to content

Commit 871a798

Browse files
committed
[conditionals] update wording, es5 version
1 parent 4295803 commit 871a798

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@
10591059
## Comparison Operators & Equality
10601060
10611061
- Use `===` and `!==` over `==` and `!=`.
1062-
- Comparison operators are evaluated in `if` statements using coercion with the `ToBoolean` method and always follow these simple rules:
1062+
- Conditional statements such as the `if` statement evaulate their expression using coercion with the `ToBoolean` abstract method and always follow these simple rules:
10631063
10641064
+ **Objects** evaluate to **true**
10651065
+ **Undefined** evaluates to **false**

es5/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@
572572
## Comparison Operators & Equality
573573
574574
- Use `===` and `!==` over `==` and `!=`.
575-
- Comparison operators are evaluated using coercion with the `ToBoolean` method and always follow these simple rules:
575+
- Conditional statements such as the `if` statement evaulate their expression using coercion with the `ToBoolean` abstract method and always follow these simple rules:
576576
577577
+ **Objects** evaluate to **true**
578578
+ **Undefined** evaluates to **false**

0 commit comments

Comments
 (0)