From 699940f3585ff7bf5d0b3cba889174bb3826341e Mon Sep 17 00:00:00 2001 From: JungLee-Dev <122341199+JungLee-Dev@users.noreply.github.com> Date: Tue, 18 Mar 2025 03:30:15 -0600 Subject: [PATCH] fix(curriculum): incomplete cash register hints (#59313) --- .../build-a-cash-register.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/build-a-cash-register-project/build-a-cash-register.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/build-a-cash-register-project/build-a-cash-register.md index 768d053e22e..216c1bf74bf 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/build-a-cash-register-project/build-a-cash-register.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/build-a-cash-register-project/build-a-cash-register.md @@ -95,7 +95,7 @@ const el = document.getElementById('purchase-btn'); assert.strictEqual(el?.nodeName?.toLowerCase(), 'button'); ``` -When `price` is `20` and the value in the `#cash` element is `10`, an alert should appear with the text `"Customer does not have enough money to purchase the item"`. +When `price` is `20`, the value in the `#cash` element is `10`, and the `#purchase-btn` element is clicked, an alert should appear with the text `"Customer does not have enough money to purchase the item"`. ```js const cashInput = document.getElementById('cash'); @@ -118,7 +118,7 @@ assert.strictEqual( ); ``` -When the value in the `#cash` element is less than `price`, an alert should appear with the text `"Customer does not have enough money to purchase the item"`. +When the value in the `#cash` element is less than `price`, and the `#purchase-btn` element is clicked, an alert should appear with the text `"Customer does not have enough money to purchase the item"`. ```js const cashInput = document.getElementById('cash'); @@ -155,7 +155,7 @@ assert.strictEqual( ); ``` -When `price` is `11.95` and the value in the `#cash` element is `11.95`, the value in the `#change-due` element should be `"No change due - customer paid with exact cash"`. +When `price` is `11.95`, the value in the `#cash` element is `11.95`, and the `#purchase-btn` element is clicked, the value in the `#change-due` element should be `"No change due - customer paid with exact cash"`. ```js const cashInput = document.getElementById('cash'); @@ -177,7 +177,7 @@ assert.strictEqual( ); ``` -When the value in the `#cash` element is equal to `price`, the value in the `#change-due` element should be `"No change due - customer paid with exact cash"`. +When the value in the `#cash` element is equal to `price`, and the `#purchase-btn` element is clicked, the value in the `#change-due` element should be `"No change due - customer paid with exact cash"`. ```js const cashInput = document.getElementById('cash');