diff --git a/index.js b/index.js index e69de29bb2d..16cc1df4719 100644 --- a/index.js +++ b/index.js @@ -0,0 +1,28 @@ +function shout(string) { + return string.toUpperCase() +} + +function whisper(string) { + return string.toLowerCase() +} + +function logShout(string) { + console.log('HELLO'.toUpperCase()) +} + +function logWhisper(string) { + console.log('HELLO'.toLowerCase()) +} + + +function sayHiToGrandma(string) { + if (string === string.toLowerCase()) { + return "I can't hear you!"; +} +else if (string === string.toUpperCase()) { + return "YES INDEED!"; +} +else if ('I love you, Grandma.') { + return 'I love you, too.' +} +} \ No newline at end of file