From 922e8f6f4ed5ab79c241fc3cffb71ab099bc7c88 Mon Sep 17 00:00:00 2001 From: Nihar Patel Date: Tue, 6 May 2025 14:58:11 -0400 Subject: [PATCH 1/2] Declare saturdayFun function and mondayWork variable --- index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index c44a93222..2a1439544 100644 --- a/index.js +++ b/index.js @@ -1 +1,7 @@ -// code your solution here +function saturdayFun(activity = "roller-skate") { + return `This Saturday, I want to ${activity}!` +} + +const mondayWork = function(activity = "go to the office") { + return `This Monday, I will ${activity}.` +} \ No newline at end of file From e8e8071e5c748d31cf6f412379020defa763f615 Mon Sep 17 00:00:00 2001 From: Nihar Patel Date: Tue, 6 May 2025 15:50:21 -0400 Subject: [PATCH 2/2] Declare wrapAdjective function and complete lab --- index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.js b/index.js index 2a1439544..32a26b704 100644 --- a/index.js +++ b/index.js @@ -4,4 +4,10 @@ function saturdayFun(activity = "roller-skate") { const mondayWork = function(activity = "go to the office") { return `This Monday, I will ${activity}.` +} + +function wrapAdjective(flair = "*"){ + return function (type = "special") { + return `You are ${flair}${type}${flair}!` + } } \ No newline at end of file