File tree Expand file tree Collapse file tree 1 file changed +38
-1
lines changed
Expand file tree Collapse file tree 1 file changed +38
-1
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments