We're live-coding on Twitch! Join us!

Basics

The toLowerCase() String method converts a string object to lower case. The return value of the method is the value of the calling string in lower case.

"yeaH Yeah YEAH yaaaaS".toLowerCase();
//"yeah yeah yeah yaaaas"

Syntax

const lowerCaseString = string.toLowerCase()

0 Parameters

Returns a string

This method returns the calling string value in lower case.

Common Uses and Snippets

Convert two separate strings to lowercase and compare

Converting a string to lowercase when attempting comparison of two separate strings.

Like this article? Follow @iChuloo on Twitter

Host websites with a $100 credit