Skip to content

Instantly share code, notes, and snippets.

@crystalattice
Created December 28, 2017 19:44
Show Gist options
  • Save crystalattice/4292d7bb6f2450bf257d4d7d99ba8d40 to your computer and use it in GitHub Desktop.
Save crystalattice/4292d7bb6f2450bf257d4d7d99ba8d40 to your computer and use it in GitHub Desktop.
//WisePerson generator
function wisePerson(wiseType, whatToSay) {
return ("A wise " + wiseType + " once said: \"" +
whatToSay + "\".");
console.log(phrase);
}
//Shouter
function shouter(whatToShout) {
return whatToShout.toUpperCase() + "!!!";
}
//Text Normalizer
function textNormalizer(text) {
var del_blanks = text.trim();
var lower = del_blanks.toLowerCase();
return lower;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment