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
32 changes: 32 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1 +1,33 @@
// code your solution here
// code your solution here
//defines the saturday function
//passes a default argument 'roller skate'
function saturdayFun(activity = "roller-skate") {
return `This Saturday, I want to ${activity}!`;
}


//function 2
//defines function mondayWork
//default argument 'go to the office'
const mondayWork = function(activity = "go to the office") {
return `This Monday, I will ${activity}.`;
}

//function 3
//defines the function wrapAdjective
//passes a default argument symbol
//defines another argument that should be returned
function wrapAdjective(symbol = "*") {
return function(adjective) {
return `You are ${symbol}${adjective}${symbol}!`;
}
}