File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed
Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff 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+
460472Implement a function called ` wrapAdjective ` :
461473
462474- It should return a function
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments