How to Convert A String to Lowercase in Javascript
Posted on: February 18, 2021 by Ariessa Norramli
In this article, you will learn how to convert a string to lowercase letters in Javascript.
Let’s say you have a string variable named ‘a’ with value “CODESOURCE.IO”.
var a = "CODESOURCE.IO";
In order to convert the string to lowercase letters, you can use the toLowerCase()
method.
var a = "CODESOURCE.IO";
console.log(a.toLowerCase());
Note: The toLowerCase()
method functions by converting a string to lowercase letters.
Share on social media
//