From 0cb317746ea085ddb861349070bbd8b905b2f62d Mon Sep 17 00:00:00 2001 From: Benah0987 <88454033+Benah0987@users.noreply.github.com> Date: Wed, 29 Mar 2023 13:55:45 +0300 Subject: [PATCH] Update index.js --- index.js | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/index.js b/index.js index c44a93222..e17121ccc 100644 --- a/index.js +++ b/index.js @@ -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}!`; + } + } + + + + + + + +