Wednesday, 29 February 2012

Returning the length of string


<html>
<body>
<script type="text/javascript">
var txt = "Hello";
document.write(txt.length);
</script>
</body>
</html>

No comments:

Post a Comment