Upper Case Or Lower Case A JavaScript String

Code

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__

Code

const sentence = "THIS is An Example"
const lowerVersion = sentence.toLowerCase()

console.log(lowerVersion)

Outputs:

__this is an example__