JS COMPARISON OPERATORS Flashcards
Comparison Operators are used to return a True or False Boolean value when comparing two values
Greater Than
>
Less Than
<
<
Greater Than or Equal to
> =
Less Than or Equal to
<=
Double Equals
==
Checks if the characters (AKA face value) of two values are the same (NOTE: Does NOT include data type when comparing - is case sensitive)
Triple Equals (AKA Strict Equality)
===
Checks if the characters (AKA face value) of two values are the same. Also, compares data types to compare if they are the same as well.
Not Equal
!=
Checks to see if characters (AKA face value) of two values are NOT equal to each other
Strict Not Equal
!==
Checks to see if values are NOT equal to each other. Also, check data types as well as character/face values
Less Than
Greater Than or Equal to
> =
Less Than or Equal to
<=
Double Equals
==
Checks if the characters (AKA face value) of two values are the same (NOTE: Does NOT include data type when comparing - is case sensitive)
Triple Equals (AKA Strict Equality)
===
Checks if the characters (AKA face value) of two values are the same. Also, compares data types to compare if they are the same as well.
Not Equal
!=
Checks to see if characters (AKA face value) of two values are NOT equal to each other
Strict Not Equal
!==
Checks to see if values are NOT equal to each other. Also, check data types as well as character/face values