You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/02-first-steps/08-comparison/article.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -120,7 +120,7 @@ The same thing with an empty string:
120
120
alert( ''==false ); // true
121
121
```
122
122
123
-
That's because operands of different types are converted to a number by the assignment operator `=`. An empty string, just like `false`, becomes a zero.
123
+
That's because operands of different types are converted to a number by the equality operator `==`. An empty string, just like `false`, becomes a zero.
124
124
125
125
What to do if we'd like to differentiate `0` from `false`?
0 commit comments