How to use JavaScript toUpperCase

In this article we will discuss about how to use the toUpperCase() Method in JavaScript.
  • 2383

This is the most important method of the string object in JavaScript. This method returns the string in the form of capital letters means it returns the string in the form of uppercase. This method is used to convert the lowercase string into uppercase string and this does not take any argument.

JavaScript Code:

<html>

<head>

<title>Example of JavaScript String toUpperCase() Method</title>

</head>

<body>

<script type="text/javascript">

var st = "God is great, and He is everywhere.";document.write(st.toUpperCase( ));

</script>

</body>

</html>

Output:

uupercase.jpg

Ask Your Question 

Got a programming related question? You may want to post your question here
 

Categories

More Articles

© 2019 DotNetHeaven. All rights reserved.