diff --git a/index.js b/index.js index c44a93222..06f2cd4b9 100644 --- a/index.js +++ b/index.js @@ -1 +1,25 @@ -// code your solution here +function saturdayFun(activity = "roller-skate") { + switch (activity) { + case "bathe my dog": + activity = "bathe my dog"; + } + return `This Saturday, I want to ${activity}!`; +} + +const mondayWork = function (activity = "go to the office") { + switch (activity) { + case "work from home": + activity = "work from home"; + } + return `This Monday, I will ${activity}.`; +}; +mondayWork(); + +function wrapAdjective(string = "*") { + const innerFunction = function (adjective = "special") { + return `You are ${string}${adjective}${string}!`; + }; + return innerFunction; +} + +wrapAdjective()();