The JavaScript toUpperCase method is used to convert the given string into Uppercase letters, and the syntax of it is:
String_Object.toUpperCase()
toUpperCase Example
The following set of examples will help you understand the JS toUpperCase Function.
<!DOCTYPE html>
<html>
<head>
<title> Js Example </title>
</head>
<body>
<h1> Example </h1>
<script>
var Str1 = "Learn JavaScript at Tutorial Gateway";
var Str3 = Str1.toUpperCase();
var Str4 = "Hi, This is From JS".toUpperCase();
var Str5 = "javascript uppercase".toUpperCase();
document.write(" <b> Uppercase Letters are: </b> " + Str3);
document.write(" <br \> <b> Uppercase Letters are: </b> " + Str4);
document.write(" <br \> <b> Uppercase Letters are: </b> " + Str5);
</script>
</body>
</html>
