Back to all solutions

#709 - To Lower Case

Problem Description

Given a string s, return the string after replacing every uppercase letter with the same lowercase letter.

Solution

/**
 * @param {string} s
 * @return {string}
 */
var toLowerCase = function(s) {
  return s.toLowerCase();
};