JavaScript Learning online:comparison operators
List of comparison operators:
>
Greater than<
Less than<=
Less than or equal to>=
Greater than or equal to===
Equal to!==
Not equal to- Example:
- console.log(15>4);
True - console.log(“Xiao Hui”.length<122);
True
- console.log(“Goody Donaldson”.length>8);
True
- console.log(8*2===16);
True
- console.log()
false
Write a comment