From 1a87f43b7a3074737e21663e06d93f43498d1cf9 Mon Sep 17 00:00:00 2001 From: Jafet Aaron Garcia Date: Sun, 2 May 2021 15:49:41 +0000 Subject: [PATCH] Done. --- index.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/index.js b/index.js index e69de29bb..6f96891c3 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 === 'hello') + return "I can't hear you!" + else if (string === 'HELLO') + return "YES INDEED!" + else (string === "I love you, Grandma.") + return "I love you, too." +}