JavaScript String toLowerCase() Tutorial

In this section, we will learn what the String toLowerCase() method is and how to use it in JavaScript.

JavaScript String toLowerCase() Method

The `toLoweCase()` method is used to convert the letters of a string value into lowercase.

Note: this method does not change the original string value but creates a new one and returns that as a result.

JavaScript String toLowerCase() Syntax

string.toLowerCase()

String toLowerCase() Method Parameters:

This method does not take any argument.

String toLowerCase() Method Return Value:

The return value of the method is the lowercase version of the target string value.

Example: convert string to lowercase in JavaScript

const id = "IF YOU WORK HARD, THEN DREAMS WILL COME TRUE";

const res = id.toLowerCase();

console.log(res);

Output:

if you work hard, then dreams will come true

Leave a Reply