mirror of
https://github.com/flynx/Course-JavaScript.git
synced 2025-10-28 18:40:08 +00:00
tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
0cdd291043
commit
90bc2e6e5c
@ -226,7 +226,8 @@
|
|||||||
y == null // -> true
|
y == null // -> true
|
||||||
|
|
||||||
// Strict comparisons also work but unless explicitly required they
|
// Strict comparisons also work but unless explicitly required they
|
||||||
// should be avoided in favor of the non-strict comparison shown above:
|
// 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
|
||||||
@ -264,7 +265,7 @@
|
|||||||
{} instanceof Object // -> true
|
{} instanceof Object // -> true
|
||||||
|
|
||||||
//
|
//
|
||||||
// this essentially checks if the left oprtand is related to (i.e. in the
|
// this essentially checks if the left operand is related to (i.e. in the
|
||||||
// inheritance chain of) the second operand's .prototype, or we can say
|
// inheritance chain of) the second operand's .prototype, or we can say
|
||||||
// that it id "inherited" from the constructor.
|
// that it id "inherited" from the constructor.
|
||||||
//
|
//
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user