String comparisons by converting strings to its uppercase form : String comparisons : String JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » String » String comparisons »

 

String comparisons by converting strings to its uppercase form

















<html>
<head>
<title>String comparisons</title>
<script type="text/javascript" language="javascript">
<!-- //
onload = function(){
    var firstString = new String("AAA");
    var secondString = new String("aaA");

    document.write("<h3>Comparison after conversion to upper case</h3>");
    var firstUpperString = firstString.toUpperCase();
    var secondUpperString = secondString.toUpperCase();
    document.write((firstUpperString==secondUpperString));
}
// -->
</script>
</head>
<body>

</body>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo String
» String comparisons