From 617f580ff04dc29e80a13750739dbe0889c5b3f4 Mon Sep 17 00:00:00 2001 From: Christopher Diaz Date: Tue, 6 Apr 2021 19:11:34 +0000 Subject: [PATCH] Done. --- index.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/index.js b/index.js index e69de29bb..122a232b2 100644 --- a/index.js +++ b/index.js @@ -0,0 +1,22 @@ +function shout(string) { + return string.toUpperCase() +} +function whisper(string) { + return string.toLowerCase() +} +function logShout(string) { + console.log(shout(string)) +} +function logWhisper(string) { + console.log(whisper(string)) +} +function sayHiToGrandma(string) { + if (string == string.toLowerCase() ){ + return ("I can\'t hear you!") +} + else if (string == string.toUpperCase() ) { + return ("YES INDEED!") +} + else if (string == ("I love you, Grandma.")) { + return ("I love you, too.") + }}