JavaScript से किसी भी टेक्स्ट केस को लोअर केस में बदलना सीखें।
किसी भी स्ट्रिंग को लोअरकेस में बदलने के लिए आप JavaScript toLowerCase() मेथड का उपयोग कर सकते हैं:
let someText = "Here is some text. Let us convert it all to lowercase"
someText.toLowerCase()
console.log(someText.toLowerCase())
// here is some text. let us convert it all to lowercase
toLowerCase() एक नया स्ट्रिंग लौटाता है, जिसका अर्थ है कि यह मूल स्ट्रिंग को नहीं म्यूटेट (बदलता) है।