From 9790a8a4efa8aa80d737401b5c41a245ffa62400 Mon Sep 17 00:00:00 2001 From: Brian Date: Tue, 19 Mar 2024 21:23:14 +0300 Subject: [PATCH] completed labs --- index.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/index.js b/index.js index c44a93222..77f54af7e 100644 --- a/index.js +++ b/index.js @@ -1 +1,16 @@ // code your solution here +function saturdayFun(opt="roller-skate"){ + return `This Saturday, I want to ${opt}!`; +} +saturdayFun("bathe my dog"); + +function mondayWork(opt="go to the office"){ + return `This Monday, I will ${opt}.`; +} + +function wrapAdjective(adjective="*"){ + const innerFunction= function (parameter="special"){ + return `You are ${adjective}${parameter}${adjective}!`; + }; + return innerFunction +}