diff --git a/index.js b/index.js index e69de29bb2..891a3ee10a 100644 --- a/index.js +++ b/index.js @@ -0,0 +1,31 @@ +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 (word) { +var deaf = "I can't hear you!" +var yes = "YES INDEED!"; +var love = "I love you, too."; +if (word.toLowerCase(word) === word) { + return deaf; +} +else if (word.toUpperCase(word) === word) { + return yes; +} +else if ("I love you, Grandma." === word) { + return love; +} + + }