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