Upper Case Or Lower Case A JavaScript String
January - 2022
const sentence = "We hold these truths to be self evident"
const upperVersion = sentence.toUpperCase()
console.log(upperVersion)
Outputs:
WE HOLD THESE TRUTHS TO BE SELF EVIDENT
const sentence = "THIS is An Example"
const lowerVersion = sentence.toLowerCase()
console.log(lowerVersion)
Outputs:
this is an example
via: toUpperCase on MDN
and: toLowerCase on MDN