3 ms·
Correct. Especially when there's mixing of in-place mutation and return-values. The first function in the green: func createPizza(order) { pizza = p
by mrkeen 3y ago
Correct.
Especially when there's mixing of in-place mutation and return-values.
The first function in the green:
func createPizza(order) {
pizza = prepare(order)
bake (pizza)
box (pizza)
return pizza
}
`prepare` transforms an order into a pizza, but `bake` and `box` mutates one in-place.