Skip to content

Instantly share code, notes, and snippets.

@rtanubra
Created February 15, 2019 12:59
Show Gist options
  • Save rtanubra/703a4e397490211dae43c146a2261e7e to your computer and use it in GitHub Desktop.
Save rtanubra/703a4e397490211dae43c146a2261e7e to your computer and use it in GitHub Desktop.
Module 4- working with strings, Checkpoint 5
function wisePerson(wiseType, whatToSay) {
// your code here
return `A wise ${wiseType} once said: "${whatToSay}".`
}
//had to console log the expected test- appeared to have been missing the "" encasing for the actual quote....
function shouter(whatToShout) {
// your code here
console.log(whatToShout.toUpperCase()+"!!!")
return whatToShout.toUpperCase()+"!!!"
}
function textNormalizer(text) {
// your code here
console.log(text.trim().toLowerCase())
return text.trim().toLowerCase()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment