From 6ff40a3e2d990f3d6f4d81003191ab1d2668e05f Mon Sep 17 00:00:00 2001 From: blithe-debugger-5623 Date: Wed, 16 Sep 2020 04:26:31 +0000 Subject: [PATCH] Done. --- index.js | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/index.js b/index.js index e69de29bb2..af668c8d9c 100644 --- a/index.js +++ b/index.js @@ -0,0 +1,27 @@ +function shout(string) { + return string.toUpperCase() +} + +function whisper(string) { + return string.toLowerCase() +} + +function logShout(string) { + console.log('HELLO'.toUpperCase() ); +} + +function logWhisper(string) { + console.log('hello'.toLowerCase() ); +} + +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."; + } +} \ No newline at end of file