From dc9825d566103723f0db25261802e544290ebc32 Mon Sep 17 00:00:00 2001 From: Justin Thompson Date: Fri, 1 Mar 2024 08:14:18 -0500 Subject: [PATCH] Corrected price spelling and numbered tasks in instructions. --- exercises/concept/pizza-order/.docs/instructions.md | 4 ++-- exercises/concept/pizza-order/.meta/exemplar.js | 4 ++-- exercises/concept/pizza-order/pizza-order.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/exercises/concept/pizza-order/.docs/instructions.md b/exercises/concept/pizza-order/.docs/instructions.md index 0ae66b16ca..61652ccf55 100644 --- a/exercises/concept/pizza-order/.docs/instructions.md +++ b/exercises/concept/pizza-order/.docs/instructions.md @@ -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. @@ -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. diff --git a/exercises/concept/pizza-order/.meta/exemplar.js b/exercises/concept/pizza-order/.meta/exemplar.js index 31ac0d6ba7..f2d94c759b 100644 --- a/exercises/concept/pizza-order/.meta/exemplar.js +++ b/exercises/concept/pizza-order/.meta/exemplar.js @@ -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 @@ -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 diff --git a/exercises/concept/pizza-order/pizza-order.js b/exercises/concept/pizza-order/pizza-order.js index 4a8ad8bf2b..c38198a5d3 100644 --- a/exercises/concept/pizza-order/pizza-order.js +++ b/exercises/concept/pizza-order/pizza-order.js @@ -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