Lowercase Conversion in JavaScript

Level 135 keystrokes

Uses toLowerCase() to convert the string "WORLD" to lowercase and prints "world".

JavaScript code

// toLowerCase() returns a new string with every letter in lowercase: "world"
// Handy for case-insensitive comparisons, e.g. a.toLowerCase() === b.toLowerCase()
1console.log("WORLD".toLowerCase());

Output

world
Practice typing this code

Practice typing this code. Results are not recorded in the rankings.

Symbols in this code

The symbols you type in this JavaScript code and how often they appear.

  • .× 2
  • "× 2
  • (× 2
  • )× 2
  • ;× 1

More JavaScript examples at level 1

← JavaScript typing practice