Write A program to use of String Function in javascript.
Code : stringfun.html
<html>
<head>
<title> Common string Functions </title>
<script type="text/javascript">
varstr="GooDAfternooN";
var str1="Hello ";
</script>
</head>
<body>
<p align="Center">Common String Functions </p>
<script type="text/javascript">
document.write(str.length);
document.write(str.toLowerCase(str));
document.write(str.toUpperCase(str));
document.write(str1.concat(str));
</script>
</body>
</html>
No comments:
Post a Comment