add additional example for strict equality

This commit is contained in:
Laila Los
2022-12-08 16:45:31 +01:00
parent cf5e3dc684
commit b66b10df49
+8
View File
@@ -384,6 +384,10 @@ When possible, use strict equality.
> if (value === 5) {
> // do stuff...
> }
>
> if (otherValue !== 6) {
> // do more stuff...
> }
> ```
>
> **Don't**
@@ -392,6 +396,10 @@ When possible, use strict equality.
> if (value == 5) {
> // do stuff...
> }
>
> if (otherValue != 6) {
> // do more stuff...
> }
> ```
> **Reason**