Skip to content

Commit cf24491

Browse files
authored
🎤 Give a names for the equal operators.
1 parent 5d8ac14 commit cf24491

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,9 @@ console.log(b === c);
263263

264264
`new Number()` is a built-in function constructor. Although it looks like a number, it's not really a number: it has a bunch of extra features and is an object.
265265

266-
When we use the `==` operator, it only checks whether it has the same _value_. They both have the value of `3`, so it returns `true`.
266+
When we use the `==` operator (Equality operator), it only checks whether it has the same _value_. They both have the value of `3`, so it returns `true`.
267267

268-
However, when we use the `===` operator, both value _and_ type should be the same. It's not: `new Number()` is not a number, it's an **object**. Both return `false.`
268+
However, when we use the `===` operator (Strict equality operator), both value _and_ type should be the same. It's not: `new Number()` is not a number, it's an **object**. Both return `false.`
269269

270270
</p>
271271
</details>

0 commit comments

Comments
 (0)