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