Skip to content
Open

Done #2295

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -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!"}
}