mirror of
https://github.com/flynx/Course-JavaScript.git
synced 2025-11-01 12:30:11 +00:00
notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
90bc2e6e5c
commit
f62a7cf521
@ -225,9 +225,10 @@
|
|||||||
x == null // -> true
|
x == null // -> true
|
||||||
y == null // -> true
|
y == null // -> true
|
||||||
|
|
||||||
// Strict comparisons also work but unless explicitly required they
|
// Strict comparisons also work but unless it explicitly required to
|
||||||
// should be avoided in favor of the non-strict and more flexible
|
// differentiate between null and undefined (which is either a rare case
|
||||||
// comparisons shown above:
|
// or a sign of bad design) they should be avoided in favor of the
|
||||||
|
// non-strict and more flexible comparisons shown above:
|
||||||
|
|
||||||
x === null // -> true
|
x === null // -> true
|
||||||
y === undefined // -> true
|
y === undefined // -> true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user