Skip to content
Open
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
39 changes: 39 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
function shout(string){
return string.toUpperCase();

}

function whisper(string){
return string.toLowerCase();

}

function logShout(string){
console.log(shout(string));

}

function logWhisper(string){
console.log(whisper(string));

}

function sayHiToHeadphonedRoommate(string){
if (string===string.toLowerCase ()){
return "I can't hear you!"
}
else if (string ===string.toUpperCase()){
return "YES INDEED!"
}
else if (string==="Let's have dinner together!"){
return "I would love to!"

}
}