With the help of the toLowerCase() method in the string will convert all the characters in a string in lowercase.
Syntax:
String.toLowerCase()
Image Representation:
Example 1:
Output:
geeksforgeeks
Example 2:
computer science