JS: toUpperCase() method

The toUpperCase() method is member of class String. This function converts all the characters of a string into uppercase.

Here is an example program with output:

<!DOCTYPE html>
   <title>JavaScript:toUpperCase() method</title>
   <meta charset="utf-8">
   var myName = "Raju";

// convert to uppercase and display

//Output = RAJU

Output of the Above Program

Rate this post