Skip to content

Commit 20573d0

Browse files
fixes readme and index.js (learn-co-curriculum#11)
1 parent 974b517 commit 20573d0

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,18 @@ space-time magic!
457457

458458
**LAB**:
459459

460+
Implement a function called `saturdayFun`:
461+
462+
- It should define a function
463+
- It uses a default argument, `'roller-skate'` when no arguments are passed
464+
- allows the default argument to be overridden
465+
466+
Implement a function called `mondayWork`:
467+
468+
- It should define a function
469+
- It uses a default argument, `'go to the office'` when no arguments are passed
470+
- allows the default argument to be overridden
471+
460472
Implement a function called `wrapAdjective`:
461473

462474
- It should return a function

index.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1 @@
1-
function saturdayFun(activity="roller-skate") {
2-
return `This Saturday, I want to ${activity}!`
3-
}
4-
5-
let mondayWork = function(activity="go to the office") {
6-
return `This Monday, I will ${activity}.`
7-
}
8-
9-
let wrapAdjective = function(style="*") {
10-
return function(adjective="special") {
11-
return `You are ${style}${adjective}${style}!`
12-
}
13-
}
1+
// code your solution here

0 commit comments

Comments
 (0)