Skip to content

Commit cce5f75

Browse files
Steven G. Harmssgharms
authored andcommitted
solution
1 parent 819ad8b commit cce5f75

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed

index.js

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,38 @@
1-
// Your code here
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+
}
14+
15+
const Calculator = {
16+
add: function(a,b) {
17+
return a + b;
18+
},
19+
subtract: function(a,b) {
20+
return a - b
21+
},
22+
multiply: function(a,b) {
23+
return a * b
24+
},
25+
divide: function(a,b) {
26+
return a / b;
27+
}
28+
}
29+
30+
let actionApplyer = function(start, ray) {
31+
let a = start
32+
33+
for (let i = 0; i < ray.length; i++ ){
34+
a = ray[i](a)
35+
}
36+
37+
return a
38+
}

0 commit comments

Comments
 (0)