MCPcopy Create free account
hub / github.com/appacademy/Module-1-Resources / pizzaMaker

Function pizzaMaker

w2/d4/closure.js:42–50  ·  view source on GitHub ↗
(food)

Source from the content-addressed store, hash-verified

40
41*/
42function pizzaMaker(food) {
43 let order = "Id like a pizza with ";
44
45 function oven() {
46 return order + food;
47 }
48
49 return oven(); // we are returning the return value of invoking the function
50}
51// console.log(pizzaMaker('mushrooms'));
52// console.log(pizzaMaker('mangos'));
53

Callers

nothing calls this directly

Calls 1

ovenFunction · 0.85

Tested by

no test coverage detected