mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): remove first person language from calorie counter workshop (#67405)
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ dashedName: step-54
|
||||
|
||||
# --description--
|
||||
|
||||
Try adding a couple of entries to the `Breakfast` category, and you may notice some bugs! The first thing we need to fix is the entry counts – the first entry should have a count of `1`, not `0`.
|
||||
Try adding a couple of entries to the `Breakfast` category, and you may notice some bugs! The first thing you need to fix is the entry counts – the first entry should have a count of `1`, not `0`.
|
||||
|
||||
This bug occurs because you are querying for `input[type="text"]` elements *before* adding the new entry to the page. To fix this, update your `entryNumber` variable to be the value of the `length` of the query plus `1`. Add this on your declaration line, not in your template strings.
|
||||
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ dashedName: step-54
|
||||
|
||||
# --description--
|
||||
|
||||
Try adding a couple of entries to the `Breakfast` category, and you may notice some bugs! The first thing we need to fix is the entry counts – the first entry should have a count of `1`, not `0`.
|
||||
Try adding a couple of entries to the `Breakfast` category, and you may notice some bugs! The first thing you need to fix is the entry counts – the first entry should have a count of `1`, not `0`.
|
||||
|
||||
This bug occurs because you are querying for `input[type="text"]` elements *before* adding the new entry to the page. To fix this, update your `entryNumber` variable to be the value of the `length` of the query plus `1`. Add this on your declaration line, not in your template strings.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user