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