String comparisons : String comparisons : String JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » String » String comparisons »

 

String comparisons

















<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>Direct comparison of the two strings</h3>");
var comparison = (firstString==secondString);
document.write(comparison);
}
// -->
</script>
</head>
<body>

</body>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo String
» String comparisons