Please enable JavaScript.
Coggle requires JavaScript to display documents.
The Abstract Equality Comparison Algorithm (X == Y) (Type(X) same Type(Y)…
The Abstract Equality Comparison Algorithm
(X
==
Y)
Type(X)
same
Type(Y)
?
True
Type(X) is
Undefiend || Null
False
Type(X)
is
Number
False
Type(X)
is
String
True
(X & Y)
is the
same
sequence of characters (same
length
and same
characters in corresponding positions
)
2 more items...
False
Type(X) is Boolean
2 more items...
True
X || Y is NAN
False
Value(X) same Value(Y)
2 more items...
Ture
Return False
True
Return True
False
(
Value(X)
is
Null
&&
Value(Y)
is
Undefined
)
OR
(
Value(X)
is
Undefined
&&
Value(Y)
is
Null
)
True
Return True
False
(
Type(X)
is
Number
&&
Type(Y)
is
String
)
OR
(
Type(X)
is
String
&&
Type(Y)
is
Number
)
True
ToNumber
(STRING_VALUE)
==
NUMBER_VALUE ?
True
Return True
false
Return False
False
Type(X) is Boolean ?
True
ToNumber
(Value(X))
==
Value(Y) ?
2 more items...
False
Type(Y) is Boolean ?
2 more items...