C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
JavaScript String toUpperCase() MethodThe JavaScript string toUpperCase() method is used to convert the string into uppercase letter. This method doesn't make any change in the original string. SyntaxThe toUpperCase() method is represented by the following syntax: string.toUpperCase() ReturnString in uppercase letter. JavaScript String toUpperCase() Method ExampleLet's see some simple examples of toUpperCase() method. Example 1Here, we will print the string in uppercase letter. <script> var str = "TheDeveloperBlog"; document.writeln(str.toUpperCase()); </script> Output: JAVATPOINT Example 2This is one more example to print the string in uppercase letter. <script> var str = "TheDeveloperBlog TUTORIALS"; document.writeln(str.toUpperCase()); </script> Output: JAVATPOINT TUTORIALS
Next TopicJavaScript String
|