From 50db9273139822db17958a9145e315034963dbf5 Mon Sep 17 00:00:00 2001 From: redolent-history-c933 Date: Thu, 25 Feb 2021 03:23:46 +0000 Subject: [PATCH] Done. --- index.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/index.js b/index.js index e69de29bb2d..b25c46c2c6c 100644 --- a/index.js +++ b/index.js @@ -0,0 +1,24 @@ +function shout(string) { +return string.toUpperCase() +} +function whisper(STRING) { + return STRING.toLowerCase() +} +function logShout(string) { + console.log(string.toUpperCase()) +} +function logWhisper(string) { + console.log(string.toLowerCase()) +} + +function sayHiToGrandma(string) { + if (string.toLowerCase()===string){ + return "I can't hear you!"; + } + if (string.toUpperCase()===string){ + return "YES INDEED!"; + } + if (string==="I love you, Grandma."){ + return "I love you, too." + } +}