Skip to content

Instantly share code, notes, and snippets.

@jamessergeant
Created August 9, 2017 10:01
Show Gist options
  • Save jamessergeant/dd103063d6931e73b0c9cb2c63e1fa0a to your computer and use it in GitHub Desktop.
Save jamessergeant/dd103063d6931e73b0c9cb2c63e1fa0a to your computer and use it in GitHub Desktop.
Snippets of code for JS drills for Funcdamentals of Web Development - Project 2.2.3
// Would recommend finding a way to hide the test function...
function wisePerson(wiseType, whatToSay) {
return 'A wise ' + wiseType + ' once said: "' +
whatToSay + '".';
}
function shouter(whatToShout) {
return whatToShout.toUpperCase() + '!!!';
}
function textNormalizer(text) {
return text.toLowerCase().trim();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment