From f1564a85ab11105698ccbf96eb54dd128ae16c06 Mon Sep 17 00:00:00 2001 From: Thomas Regulski Date: Thu, 10 Dec 2020 23:38:24 +0000 Subject: [PATCH] Done. --- index.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/index.js b/index.js index e69de29bb2d..2c206a44cc0 100644 --- a/index.js +++ b/index.js @@ -0,0 +1,25 @@ +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 === "I love you, Grandma.") { + return ("I love you, too."); + } else if (string === "HELLO") { + return ("YES INDEED!"); + } else { + return ("I can't hear you!"); + } +}