Skip to content

JS String Prototype ToLowerCase

Quincy Larson edited this page Aug 20, 2016 · 1 revision

JavaScript String.prototype.toLowerCase()

The JavaScript method .toLowerCase() returns the same string it was called on, but in all lower case.

Syntax

str.toLowerCase()

Examples

console.log("HELLO WORLD".toLowerCase()); // Console will output "hello world"

Source MDN

Clone this wiki locally