JavaScript String.prototype.toLowerCase() Explained with Examples

The JavaScript array method .toLowerCase() will return the value of the string converted to lower case. The original string is not changed.

Syntax

  string.toLowerCase()

Examples

  var shout = "I AM SHOUTING VERY LOUDLY"
  var whisper = shout.toLowerCase()
  
  console.log(shout) // will return "I AM SHOUTING VERY LOUDLY"
  console.log(whisper) // will return "i am shouting very loudly"
14 Likes