From 0d3021e68763df19951575994a900a151a67500c Mon Sep 17 00:00:00 2001 From: daring-demo-aacc Date: Sat, 8 May 2021 17:56:15 +0000 Subject: [PATCH] Done. --- index.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/index.js b/index.js index e69de29bb2d..0dcc553b91f 100644 --- a/index.js +++ b/index.js @@ -0,0 +1,23 @@ +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.toUpperCase() === 'HELLO' ){ + return "YES INDEED!" + } + if (string.toLowerCase() ==='hello'){ + return "I can\'t hear you!" + } + if (string === 'I love you, Grandma.'){ + return "I love you, too." + } +} \ No newline at end of file