Skip to content

Commit 0810a23

Browse files
authored
fix(curriculum): updated instruction and hints to eliminate ambiguity (freeCodeCamp#56532)
1 parent b7e16b6 commit 0810a23

File tree

1 file changed

+2
-2
lines changed
  • curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-oop-by-building-a-shopping-cart

1 file changed

+2
-2
lines changed

curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-oop-by-building-a-shopping-cart/63ee5d8f9e7168076e932fe2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dashedName: step-12
77

88
# --description--
99

10-
After your `h2` element, create two `p` elements. Give the first a `class` of `dessert-price`, and the text of the `price` variable with a dollar sign in front of it. Give the second a `class` of `product-category`, and the text `"Category: "` followed by the value of the `category` variable.
10+
After your `h2` element, create two `p` elements. Give the first a `class` of `dessert-price`, and set the text to a dollar sign `"$"` followed by the value of the `price` variable. Give the second a `class` of `product-category`, and the text `"Category: "` followed by the value of the `category` variable.
1111

1212
# --hints--
1313

@@ -32,7 +32,7 @@ Your first `p` element should have a `class` of `dessert-price`.
3232
assert.equal(document.querySelector('.dessert-card')?.children[1].className, 'dessert-price');
3333
```
3434
35-
Your first `p` element should have the text of the `price` variable with a dollar sign in front of it.
35+
Your first `p` element should have the dollar sign `"$"` followed by the value of the `price` variable.
3636
3737
```js
3838
assert.equal(document.querySelector('.dessert-card')?.children[1].textContent, '$12.99');

0 commit comments

Comments
 (0)