diff --git a/index.js b/index.js index e69de29bb2..6d24ddd2ca 100644 --- a/index.js +++ b/index.js @@ -0,0 +1,20 @@ +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 == whisper(string)) { + return "I can't hear you!" + } else if (string == shout(string)) { + return "YES INDEED!"} +} \ No newline at end of file