From 619c89729a1c2d2ef0c74c790b262a41defb10be Mon Sep 17 00:00:00 2001 From: Zachary Youngdale Date: Thu, 17 Jun 2021 05:30:16 +0000 Subject: [PATCH 1/2] Done. --- index.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/index.js b/index.js index e69de29bb..267800fb3 100644 --- a/index.js +++ b/index.js @@ -0,0 +1,16 @@ +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) {return ("I can't hear you!") + + } From 3259fb94e871924373835522f1fa17e483f732a8 Mon Sep 17 00:00:00 2001 From: Zachary Youngdale Date: Thu, 17 Jun 2021 17:23:49 +0000 Subject: [PATCH 2/2] Done. --- index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 267800fb3..3231a1609 100644 --- a/index.js +++ b/index.js @@ -11,6 +11,10 @@ function logWhisper(string) { console.log(string.toLowerCase() ); } function sayHiToGrandma(string) { - if (string.toLowerCase) {return ("I can't hear you!") - + 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." }