How to convert a string in all lower case letters?

   JavaScript

In JavaScript, there is a built-in method toLowerCase(). Using this method you can convert a string in all lower case letters.

Solution

var string = "JavaScript";
var newString = string.toLowerCase();
console.log(newString);

// returns
// javascript
Tags: JavaScriptString all lowercasetoLowerCase

Leave a Comment