Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions exercises/concept/pizza-order/.docs/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ If customers want, they can add an unlimited number of extra options: either "Ex

Your task is to write code that assists the customer in figuring out the cost to them.

## Calculate the price of a pizza
## 1. Calculate the price of a pizza

Provided the pizza's name as the first argument, and an unlimited number of added options, calculate the price of the pizza in dollars.

Expand All @@ -31,7 +31,7 @@ pizzaPrice(
// => 17
```

## Calculate the total price of an order
## 2. Calculate the total price of an order

Your function is called with a list of `PizzaOrder`s and should return the total price of the order in dollars.
Each `PizzaOrder` has a `pizza` property - the pizza's name, and an `extras` property - the list of extra options.
Expand Down
4 changes: 2 additions & 2 deletions exercises/concept/pizza-order/.meta/exemplar.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const PIZZA_PRICES = {
};

/**
* Determine the prize of the pizza given the pizza and optional extras
* Determine the price of the pizza given the pizza and optional extras
*
* @param {Pizza} pizza name of the pizza to be made
* @param {Extra[]} extras list of extras
Expand All @@ -33,7 +33,7 @@ export function pizzaPrice(pizza, ...[extra, ...otherExtras]) {
}

/**
* Calculate the prize of the total order, given individual orders
* Calculate the price of the total order, given individual orders
*
* @param {PizzaOrder[]} pizzaOrders a list of pizza orders
* @returns {number} the price of the total order
Expand Down
2 changes: 1 addition & 1 deletion exercises/concept/pizza-order/pizza-order.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// @ts-check

/**
* Determine the prize of the pizza given the pizza and optional extras
* Determine the price of the pizza given the pizza and optional extras
*
* @param {Pizza} pizza name of the pizza to be made
* @param {Extra[]} extras list of extras
Expand Down