toLowerCase()

ES3+

Returns the string converted to lower case.

Syntax

string.toLowerCase()

Return Value

string

A new string representing the original string in lower case

Examples

JavaScript
const str = 'Hello World';
console.log(str.toLowerCase());
Output:
// 'hello world'

Related Methods