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"
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments