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: