This content originally appeared on CodeSource.io and was authored 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.
The post How to Convert A String to Lowercase in Javascript appeared first on CodeSource.io.
This content originally appeared on CodeSource.io and was authored by Ariessa Norramli
Ariessa Norramli | Sciencx (2021-02-18T10:54:55+00:00) How to Convert A String to Lowercase in Javascript. Retrieved from https://www.scien.cx/2021/02/18/how-to-convert-a-string-to-lowercase-in-javascript/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.