From b28cf751e9aa0edeafe1058b1115a7c8f9150aea Mon Sep 17 00:00:00 2001 From: RennieNjuguna Date: Mon, 5 Dec 2022 20:45:22 +0300 Subject: [PATCH 1/2] Completed Assignment --- index.js | 13 ++++++++++++- package-lock.json | 25 ------------------------- 2 files changed, 12 insertions(+), 26 deletions(-) diff --git a/index.js b/index.js index c44a93222..c7727f589 100644 --- a/index.js +++ b/index.js @@ -1 +1,12 @@ -// code your solution here +function saturdayFun(activity = "roller-skate"){ +return `This Saturday, I want to ${activity}!` +} +saturdayFun('bath my dog'); +const mondayWork = function(activity="go to the office"){ + return `This Monday, I will ${activity}.`; +} +function wrapAdjective(visual = '*'){ +return function(adj = "special"){ + return `You are ${visual}${adj}${visual}!` +} +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 2882251de..51e7543d4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1002,25 +1002,6 @@ "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", "dev": true }, - "file-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/file-match/-/file-match-1.0.2.tgz", - "integrity": "sha1-ycrSZdLIrfOoFHWw30dYWQafrvc=", - "dev": true, - "requires": { - "utils-extend": "^1.0.6" - } - }, - "file-system": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/file-system/-/file-system-2.2.2.tgz", - "integrity": "sha1-fWWDPjojR9zZVqgTxncVPtPt2Yc=", - "dev": true, - "requires": { - "file-match": "^1.0.1", - "utils-extend": "^1.0.4" - } - }, "forever-agent": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", @@ -1793,12 +1774,6 @@ "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", "dev": true }, - "utils-extend": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/utils-extend/-/utils-extend-1.0.8.tgz", - "integrity": "sha1-zP17ZFQPjpDuIe7Fd2nQZRyril8=", - "dev": true - }, "uuid": { "version": "3.3.2", "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", From eefffa1dcac33c4be3ebbf083eb487485324dcc5 Mon Sep 17 00:00:00 2001 From: RennieNjuguna Date: Mon, 5 Dec 2022 20:55:42 +0300 Subject: [PATCH 2/2] Completed Assignment --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index c7727f589..d6c960c03 100644 --- a/index.js +++ b/index.js @@ -8,5 +8,5 @@ const mondayWork = function(activity="go to the office"){ function wrapAdjective(visual = '*'){ return function(adj = "special"){ return `You are ${visual}${adj}${visual}!` -} +} } \ No newline at end of file