Home / Javascript Tips Generated By ChatGPT / Converting Strings to Uppercase or Lowercase in Javascript Change the case of a string. Source Code let lower = "hello"; console.log(lower.toUpperCase()); // "HELLO" let upper = "HELLO"; console.log(upper.toLowerCase()); // "hello"