Like other languages, JavaScript also has conditional statements to judge the process. Includes various logical statements
Comparison operator
Commonly used comparison operators are equal to ==, not equal to! = , greater than >, less than <, greater than or equal to >= , less than or equal to <=
The code copy is as follows:
document.write("Study" == "study");//false
document.write("Study" < "study"); //false
document.write("Study".toUpperCase())//STUDY
document.write("Study".toLowerCase() == "study".toLowerCase()+"<br>");//true Use toLowerCase() and toUpperCase() for case conversion
The above is related to the JavaScript comparison operator. I hope you can like it