From b299766947f0f8cbd723c77e43799583416b63e8 Mon Sep 17 00:00:00 2001 From: Lily Chisholm Date: Thu, 27 May 2021 04:26:08 +0000 Subject: [PATCH] Done. --- index.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/index.js b/index.js index e69de29bb..b4e0eebde 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) { + return console.log('HELLO') +} +function logWhisper(string) { + return 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 (string === 'I love you, Grandma.') + return "I love you, too." + }