In this article, you’ll learn how to convert string to lowercase in javascript. To convert the string to lowercase, you can use the toLowerCase()
method.
This method converts the string to lowercase and it does not take any parameter. This method does not change the original string.
This method does not affect any of the special characters, digits, and alphabets that are already in the lower case.
console.log('Welcome To TutorialsRack!!'.toLowerCase());
// Output ==> welcome to tutorialsrack!!
console.log('WELCOME TO TUTORIALSRACK!!'.toLowerCase());
// Output ==> welcome to tutorialsrack!!
console.log('WELCOME TO TutorialsRack!!'.toLowerCase());
// Output ==> welcome to tutorialsrack!!
I hope this article will help you to understand how to convert string to lowercase in javascript.
Share your valuable feedback, please post your comment at the bottom of this article. Thank you!
Comments