Upper Case Or Lower Case A JavaScript String
Code
const sentence = "We hold these truths to be self evident"
const upperVersion = sentence.
Outputs:
__WE HOLD THESE TRUTHS TO BE SELF EVIDENT__
Code
const sentence = "THIS is An Example"
const lowerVersion = sentence.
Outputs:
__this is an example__
via: toUpperCase on MDN
and: toLowerCase on MDN