diff --git a/index.js b/index.js index e69de29bb2d..c02a6c1bfba 100644 --- a/index.js +++ b/index.js @@ -0,0 +1,25 @@ +function shout(string) { + return string.toUpperCase() +} +function whisper(str) { + return str.toLowerCase() +} +function logShout(str) { + console.log(str.toUpperCase()) +} +function logWhisper(str) { + console.log(str.toLowerCase()) +} +function sayHiToGrandma(str) { + if (str.toLowerCase() === str) { + return "I can't hear you!" + } + + if (string.toUpperCase() === string) { + return "YES INDEED!" + } + + if (string === "I love you, Grandma.") { + return "I love you, too." + } +}