From e2d68943027ce6443df2e2db429b89af4af3d71e Mon Sep 17 00:00:00 2001 From: Zachary Goodman Date: Fri, 23 Apr 2021 00:58:12 +0000 Subject: [PATCH] Done. --- index.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/index.js b/index.js index e69de29bb..d9e6f84b3 100644 --- a/index.js +++ b/index.js @@ -0,0 +1,21 @@ +function shout(string) { + return string.toUpperCase(); +} + +function whisper(string) { + return string.toLowerCase(); +} + +function logShout(string) { + console.log(string.toUpperCase()); +} + +function logWhisper(string) { + console.log(string.toLowerCase()); +} + +function sayHiToGrandma(string) { + if (string === whisper(string)) {return "I can't hear you!"} + else if (string === shout(string)) {return "YES INDEED!"} + else if (string === "I love you, Grandma.") {return "I love you, too."} +} \ No newline at end of file