From 7eea1527c75373c207e7af8bf5c489a8185acbfb Mon Sep 17 00:00:00 2001 From: Joseph Autorino Date: Sun, 4 Apr 2021 04:33:38 +0000 Subject: [PATCH] Done. --- index.js | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/index.js b/index.js index e69de29bb..b8721db0b 100644 --- a/index.js +++ b/index.js @@ -0,0 +1,31 @@ +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.toLowerCase() === string) { + return "I can't hear you!" +} + + if(string.toUpperCase() === string) { + return "YES INDEED!" + } + + if (string == "I love you, Grandma.") { + return "I love you, too." + } + + return "Are you eating enough?" + }