by @saigowthamr

How to convert a JavaScript String to lower case

Home » javascript » How to convert a JavaScript String to lower case

To convert a string to lowercase we can use the built-in toLowerCase() method in JavaScript.

Here is an example that converts a string How ARE YOU to lowercase.

const message = "How ARE YOU";

const lowercaseMsg = message.toLowerCase();

console.log(lowercaseMsg);

Output:

'how are you'

Best Web Development courses