File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
more-on-functions/exercises Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ console.log("Fuel level: " + checkFuel(fuelLevel));
25
25
console . log ( "Hold status: " + holdStatus ( cargoHold ) ) ;
26
26
27
27
/* Steal some fuel from the shuttle:
28
- * /
28
+ */
29
29
30
30
//a). Define an anonymous function and set it equal to a variable with a normal, non-suspicious name. The function takes one parameter. This will be the fuel level on the shuttle.
31
31
@@ -36,7 +36,7 @@ console.log("Hold status: " + holdStatus(cargoHold));
36
36
//d). Decide where to best place your function call to gather our new fuel.
37
37
38
38
/* Next, liberate some of that glorious cargo.
39
- * /
39
+ */
40
40
41
41
//a). Define another anonymous function with an array as a parameter, and set it equal to another innocent variable.
42
42
@@ -47,11 +47,10 @@ console.log("Hold status: " + holdStatus(cargoHold));
47
47
//d). Don’t get hasty, matey! Remember to test your function.
48
48
49
49
/* Finally, you need to print a receipt for the accountant. Don’t laugh! That genius knows MATH and saves us more gold than you can imagine.
50
- * /
50
+ */
51
51
52
52
//a). Define a function called irs that can take fuelLevel and cargoHold as arguments.
53
53
54
54
//b). Call your anonymous fuel and cargo functions from within irs.
55
55
56
- //c). Use a template literal to return, "Raided _____ kg of fuel from the tanks, and stole ____ and ____ from the cargo hold."
57
-
56
+ //c). Use a template literal to return, "Raided _____ kg of fuel from the tanks, and stole ____ and ____ from the cargo hold."
You can’t perform that action at this time.
0 commit comments