Back
I want to convert a string from “Your Name” to “your name”. Can anyone tell me how to do this in JavaScript?
According to this link, toLowerCase() method returns the calling string value converted to lowercase. The value of the string str remains the same.
const str= 'Your Name';
console.log(str.toLowerCase());
Output: "your name"
31k questions
32.8k answers
501 comments
693 users