-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
21 lines (21 loc) · 515 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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.toLowerCase() == string) {
return "I can't hear you!";
} else if (string.toUpperCase() == string) {
return "YES INDEED!";
} else if (string == "I love you, Grandma.") {
return "I love you, too."
}
}