From 374fcbe4d544e8867ed7cc2b981d0919c993f6f5 Mon Sep 17 00:00:00 2001 From: Deshawn Monzon Date: Wed, 5 May 2021 23:00:40 +0000 Subject: [PATCH] Done. --- index.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/index.js b/index.js index e69de29bb..7e70f2c41 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('HELLO') +} + +function logWhisper(string) { + console.log('hello') +} + +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." +}