Hi community
Context:
Exercise : Pizza order
At the moment, the orderPrice(pizzaOrders)
function to implement isn’t really clear because we have no idea about what is PizzaOrder
pass in parameters.
@param {PizzaOrder[]} pizzaOrders a list of pizza orders
Proposal:
- We could help the developper to provide more information inside js docs :
* @typedef PizzaOrder
* @type {object}
* @property {string} pizza - the name of the pizza.
* @property {string[]} extras - the name of extras ingredients of the pizza.
@param {PizzaOrder[]} pizzaOrders a list of pizza orders
- Precise the
PizzaOrder
inside the instruction of the task’s exercise
What do you think about that ?
Expected:
Give more information about the developper of what is PizzaOrder