JavaScript toLowerCase()

📔 : Java Script 🔗

toLowerCase() method String को lowercase letters में convert करता है। हालाँकि यह original String में कोई changes नहीं करता है।

Important
String को uppercase में convert करने के लिए toUpperCase() method use करते हैं।


JavaScript toLowerCase Syntax

string.toLowerCase()

Parameters
  1. string | required : यह String variable है जिसे आप lowercase letters में convert करना चाहते हैं।

  2. Return Value : String को lowercase letters में convert करके return करता है।

JavaScript toLowerCase Example

File : js_toLowerCase.html

CopyFullscreenClose FullscreenRun
<!DOCTYPE html>
<html>
  <body>
    <script>
      let str = "Hello world!.";
      document.write(str.toLowerCase());
      document.write("<br> Original String: " + str);
    </script>
  </body>
</html>
Output
hello world!.
Original String: Hello world!. 

Related Topics :

Rahul Kumar

Rahul Kumar

Hi ! My name is Rahul Kumar Rajput. I'm a back end web developer and founder of learnhindituts.com. I live in Uttar Pradesh (UP), India and I love to talk about programming as well as writing technical tutorials and tips that can help to others.

Get connected with me. :) LinkedIn Twitter Instagram Facebook