C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
JavaScript String toLocaleUpperCase() MethodJavaScript string toLocaleUpperCase() method converts the string to uppercase letter on the basis of host's current locale. In most cases, this method returns the similar result as the toUpperCase() method. Syntax
 The toLocaleUpperCase() method is represented by the following syntax: string. toLocaleUpperCase() Returns
 A string of uppercase letter on the basis of host's current locale. JavaScript String toLocaleUpperCase() Method Example
 Let's see some simple examples of toLocaleUpperCase() method. Example 1Here, we will print the given string in uppercase letter. <script> var str="TheDeveloperBlog"; document.writeln(str.toLocaleUpperCase()); </script> Output: JAVATPOINT Example 2Let's see one more example to print the given string in uppercase letter. 
<script>
var str=new String("TheDeveloperBlog");
document.writeln(str.toLocaleUpperCase());
</script>
Output: JAVATPOINT 
Next TopicJavaScript String
 
 |