File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -19,17 +19,17 @@ JavaScript features *weak typing*. This means that the equality operator
19
19
null == undefined // true
20
20
" \t\r\n" == 0 // true
21
21
22
- The above table shows the results of the type coercion and it is the main reason
23
- why the use of ` == ` is widely regarded as bad practice, it introduces hard to
24
- track down bugs due to its complicated conversion rules.
22
+ The above table shows the results of the type coercion, and it is the main reason
23
+ why the use of ` == ` is widely regarded as bad practice. It introduces
24
+ hard-to- track- down bugs due to its complicated conversion rules.
25
25
26
- Additionally there is also a performance impact when type coercion is in play;
26
+ Additionally, there is also a performance impact when type coercion is in play;
27
27
for example, a string has to be converted to a number before it can be compared
28
28
to another number.
29
29
30
30
### The Strict Equality Operator
31
31
32
- The strict equality operator consists of ** three** equal signs: ` === `
32
+ The strict equality operator consists of ** three** equal signs: ` === ` .
33
33
34
34
It works exactly like the normal equality operator, except that strict equality
35
35
operator does ** not** perform type coercion between its operands.
You can’t perform that action at this time.
0 commit comments