Output string value and length : String Declaration : String JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » String » String Declaration »

 

Output string value and length

















<html>
<head>
<script type="text/javascript" language="javascript">
<!-- //
onload = function(){
 var myString = "AAA";
 document.write(myString + " has a length of " + myString.length + " characters.");
 }
// -->
</script>
</head>
<body>

</body>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo String
» String Declaration