Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // String Drills
- function wisePerson(wiseType, whatToSay) {
- return `A wise ${wiseType} once said: "${whatToSay}".`;
- }
- function shouter(whatToShout) {
- return `${whatToShout.toUpperCase()}!!!`;
- }
- function textNormalizer(text) {
- return text.toLowerCase().trim();
- }
- // Number Drills
- function computeArea(width, height) {
- return width * height;
- }
- function celsToFahr(celsTemp) {
- return celsTemp * (9/5) + 32;
- }
- function fahrToCels(fahrTemp) {
- return (fahrTemp - 32) * (9/5);
- }
- function isDivisible(divisee, divisor) {
- return divisee % divisor === 0;
- }
Add Comment
Please, Sign In to add comment