This post illustrate you JavaScript Uppercase and Lowercase inbuilt methods. here the str variable contains some string and uppercase and lowercase method is applied on both. you can check output once you run the given program.
<html>
<body>
<script type="text/javascript">
var str=("This is Example of JavaScript UpperCase and LowerCase.")
document.write("<br>")
document.write(str.toLowerCase())
document.write("<br>")
document.write(str.toUpperCase())
document.write("<br>")
</script>
</body>
</html>
<html>
<body>
<script type="text/javascript">
var famname = new Array(4)
famname[0] = "CSharpHub.com"
famname[1] = "SharePointBank.com"
famname[2] = "BharatClick.com"
famname[3] = "SoftwareTestingNet.com"
for (i=0; i<4; i++){
document.write(famname[i] + "<br>")
}
</script>
</body>
</html>
No comments:
Post a Comment