If a lower case string is greater than, equal to, or less than the same string in upper case characters.
<HTML>
<BODY>
<H1>
<SCRIPT>
if ("aaa" > "AAA"){
document.write("Lower case is greater than upper case!");
} else if ("aaa" == "AAA"){
document.write("They are the same!");
} else {
document.write("Upper case is greater than lower case!");
}
</SCRIPT>
</H1>
</BODY>
</HTML>
Related examples in the same category