To Lower Case - Practice Coding | SlaveCode
Problems
Scratchpad
Run
Submit
0
0
1
2
3
4
5
6
7
8
9
0
0
1
2
3
4
5
6
7
8
9
:
0
0
1
2
3
4
5
6
7
8
9
0
0
1
2
3
4
5
6
7
8
9
Toggle theme (Current: Custom)
Scratchpad
Run
Submit
Description
Hints
Solutions
709. To Lower Case
Easy
10 Points
String
Given a string s, return the string after replacing every uppercase letter with the same lowercase letter.
Examples
Example 1
Input: s = "Hello" Output: "hello"
Example 2
Input: s = "here" Output: "here"
Example 3
Input: s = "LOVELY" Output: "lovely"
Constraints
1 <= s.length <= 100
s consists of printable ASCII characters.
JAVASCRIPT
Code
Tests
Result
Description
Hints
Solutions
709. To Lower Case
Easy
10 Points
String
Given a string s, return the string after replacing every uppercase letter with the same lowercase letter.
Examples
Example 1
Input: s = "Hello" Output: "hello"
Example 2
Input: s = "here" Output: "here"
Example 3
Input: s = "LOVELY" Output: "lovely"
Constraints
1 <= s.length <= 100
s consists of printable ASCII characters.
JAVASCRIPT
Code
Tests
Result