mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-22 21:08:12 +08:00
fix(curriculum): Remove unused id of calculate-calories (#53083)
This commit is contained in:
parent
630e5e8b90
commit
39b974fb96
@ -7,10 +7,11 @@ dashedName: step-11
|
||||
|
||||
# --description--
|
||||
|
||||
Create another `div` element. Within it, nest a `button` to `submit` the form, with an `id` set to `calculate-calories`. This button should have the text `Calculate Remaining Calories`.
|
||||
Create another `div` element. Within it, nest a `button` to `submit` the form. This button should have the text `Calculate Remaining Calories`.
|
||||
|
||||
Then add a `button` with the `id` set to `clear` to clear the form (don't forget to give it a `type` attribute that prevents it from submitting the form). This button needs the text `Clear`.
|
||||
|
||||
|
||||
# --hints--
|
||||
|
||||
You should create a second `div` element.
|
||||
@ -31,12 +32,6 @@ Your `button` element should have a `type` attribute set to `submit`.
|
||||
assert.equal(document.querySelectorAll('form > div')?.[1]?.querySelector('button')?.getAttribute('type'), 'submit');
|
||||
```
|
||||
|
||||
Your `button` element should have an `id` attribute set to `calculate-calories`.
|
||||
|
||||
```js
|
||||
assert.equal(document.querySelectorAll('form > div')?.[1]?.querySelector('button')?.getAttribute('id'), 'calculate-calories');
|
||||
```
|
||||
|
||||
Your `button` element should have the text `Calculate Remaining Calories`.
|
||||
|
||||
```js
|
||||
|
||||
@ -96,7 +96,7 @@ assert.equal(document.querySelector('.container > div')?.innerHTML.trim(), '');
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -83,7 +83,7 @@ assert.match(code, /script\s*?src\s*?=\s*?('|")(\.\/)?script\.js\1/);
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -101,7 +101,7 @@ assert.equal(calorieCounter, document.getElementById('calorie-counter'));
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -107,7 +107,7 @@ assert.equal(entryDropdown, document.getElementById('entry-dropdown'));
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -125,7 +125,7 @@ assert.equal(output, document.getElementById("output"));
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -89,7 +89,7 @@ assert.match(code, /let\s+isError\s*=\s*false/g);
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -97,7 +97,7 @@ assert.match(cleanInputString?.toString(), /\{\s*\}/);
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -95,7 +95,7 @@ assert.match(cleanInputString.toString(), /strArray\s*=\s*str\.split\(\s*('|")\1
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -83,7 +83,7 @@ assert.match(cleanInputString.toString(), /cleanStrArray\s*=\s*\[\s*\]/g);
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -95,7 +95,7 @@ assert.match(cleanInputString.toString(), /for\s*\(\s*(let|var)\s+i\s*=\s*0\s*;\
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit"s>
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -112,7 +112,7 @@ assert.match(code, /for\s*\(\s*(let|var)\s+i\s*=\s*0\s*;\s*i\s*<\s*strArray\.len
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -109,7 +109,7 @@ assert.match(cleanInputString.toString(), /regex\s*=\s*\/hello\//);
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -79,7 +79,7 @@ assert.match(cleanInputString.toString(), /regex\s*=\s*\/\\\+-\//);
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -77,7 +77,7 @@ assert.match(cleanInputString.toString(), /regex\s*=\s*\/\\\+-\\s\//)
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -91,7 +91,7 @@ assert.match(cleanInputString.toString(), /regex\s*=\s*\/\[\+-\\s\]\//);
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -83,7 +83,7 @@ assert.match(cleanInputString.toString(), /regex\s*=\s*\/\[\+-\\s\]\/g/);
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -101,7 +101,7 @@ assert.match(cleanInputString.toString(), /return\s*str\.replace\(\s*regex\s*,\s
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -91,7 +91,7 @@ assert.match(isInvalidInput?.toString(), /\(\s*str\s*\)/)
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -83,7 +83,7 @@ assert.match(isInvalidInput.toString(), /regex\s*=\s*\/e\//);
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -77,7 +77,7 @@ assert.match(isInvalidInput.toString(), /regex\s*=\s*\/e\/i/);
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -85,7 +85,7 @@ assert.match(isInvalidInput.toString(), /regex\s*=\s*\/\[0-9\]e\[0-9\]\//);
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -83,7 +83,7 @@ assert.match(isInvalidInput.toString(), /regex\s*=\s*\/\[0-9\]\+e\[0-9\]\+\//);
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -83,7 +83,7 @@ assert.match(isInvalidInput.toString(), /regex\s*=\s*\/\\d\+e\\d\+\//);
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -91,7 +91,7 @@ assert.match(isInvalidInput.toString(), /return\s+str\.match\(\s*regex\s*\)/);
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -89,7 +89,7 @@ assert.match(addEntry?.toString(), /\(\s*\)/);
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -94,7 +94,7 @@ assert.match(addEntry.toString(), /targetId\s*=\s*('|")#\1\s*\+\s*entryDropdown\
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -95,7 +95,7 @@ assert.match(addEntry.toString(), /targetInputContainer\s*=\s*document\.querySel
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -95,7 +95,7 @@ assert.match(code, /const\s+targetInputContainer\s*=\s*document\.querySelector\(
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -89,7 +89,7 @@ assert.match(code, /const\s+targetInputContainer\s*=\s*document\.querySelector\(
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -93,7 +93,7 @@ assert.match(addEntry.toString(), /entryNumber\s*=\s*targetInputContainer\.query
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -93,7 +93,7 @@ assert.match(addEntry.toString(), /entryNumber\s*=\s*targetInputContainer\.query
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -83,7 +83,7 @@ assert.match(code, /HTMLString\s*=\s*``/);
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -89,7 +89,7 @@ assert.match(code, /HTMLString\s*=\s*`\n\s*<label>Entry\s\$\{entryNumber\}\sName
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -83,7 +83,7 @@ assert.match(code, /HTMLString\s*=\s*`\n\s*<label\s+for\s*=\s*"\$\{entryDropdown
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -107,7 +107,7 @@ assert.match(inputAttributes, /id\s*=\s*"\${entryDropdown.value}-\${entryNumber}
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -117,7 +117,7 @@ assert.match(HTMLstring, /`\n\s*<label\s+for="\$\{entryDropdown.value\}-\$\{entr
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -126,7 +126,7 @@ assert.match(inputAttributes, /min\s*=\s*"0"/);
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -106,7 +106,7 @@ assert.match(addEntry.toString(), /targetInputContainer\.innerHTML\s*\+=\s*HTMLS
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -79,7 +79,7 @@ assert.match(addEntry.toString(), /entryNumber\s*=\s*targetInputContainer\.query
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -91,7 +91,7 @@ assert.match(addEntry.toString(), /targetInputContainer\.insertAdjacentHTML\(\s*
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -87,7 +87,7 @@ assert.match(addEntry.toString(), /insertAdjacentHTML\(\s*('|")beforeend\1\s*,\s
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -93,7 +93,7 @@ assert.match(getCaloriesFromInputs?.toString(), /\(\s*list\s*\)/);
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -91,7 +91,7 @@ assert.match(code, /addEntryButton\.addEventListener\(\s*('|")click\1\s*,\s*addE
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -91,7 +91,7 @@ assert.match(getCaloriesFromInputsString, /let\s+calories\s*=\s*0/);
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -97,7 +97,7 @@ assert.match(getCaloriesFromInputs.toString(), /for\s*\(\s*(let|var)\s+i\s*=\s*0
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -105,7 +105,7 @@ assert.match(getCaloriesString, /for\s*\(\s*let\s+i\s*=\s*0\s*;\s*i\s*<\s*list\.
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -92,7 +92,7 @@ assert.match(getCaloriesFromInputs.toString(), /currVal\s*=\s*cleanInputString\(
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -89,7 +89,7 @@ assert.match(getCaloriesFromInputs.toString(), /invalidInputMatch\s*=\s*isInvali
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -101,7 +101,7 @@ assert.isBelow(getCaloriesFromInputs.toString().indexOf("for"), getCaloriesFromI
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -92,7 +92,7 @@ assert.match(code.split("function getCaloriesFromInputs")[1], /alert\(`Invalid I
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -83,7 +83,7 @@ assert.match(code.split("function getCaloriesFromInputs")[1], /alert\(`Invalid I
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -105,7 +105,7 @@ assert.match(getCaloriesFromInputs.toString(), /calories\s*\+=\s*Number\(\s*curr
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -83,7 +83,7 @@ assert.match(getCaloriesFromInputs.toString(), /calories\s*\+=\sNumber\(currVal\
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -89,7 +89,7 @@ assert.match(calculateCalories?.toString(), /\(e\)/);
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -85,7 +85,7 @@ assert.match(calculateCalories.toString(), /isError\s*=\s*false/);
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -91,7 +91,7 @@ assert.match(calculateCalories.toString(), /breakfastNumberInputs\s*=\s*document
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -89,7 +89,7 @@ assert.match(calculateCalories.toString(), /lunchNumberInputs\s*=\s*document\.qu
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -125,7 +125,7 @@ assert.match(calculateCalories.toString(), /exerciseNumberInputs\s*=\s*document\
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -91,7 +91,7 @@ assert.match(calculateCalories.toString(), /breakfastCalories\s*=\s*getCaloriesF
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -89,7 +89,7 @@ assert.match(calculateCalories.toString(), /lunchCalories\s*=\s*getCaloriesFromI
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -125,7 +125,7 @@ assert.match(calculateCalories.toString(), /exerciseCalories\s*=\s*getCaloriesFr
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -93,7 +93,7 @@ assert.match(calculateCalories.toString(), /budgetCalories\s*=\s*getCaloriesFrom
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -89,7 +89,7 @@ assert.match(calculateCalories.toString(), /if\s*\(\s*isError\s*\)\s*\{?\s*retur
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -95,7 +95,7 @@ assert.match(calculateCalories.toString(), /consumedCalories\s*=\s*breakfastCalo
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -89,7 +89,7 @@ assert.match(calculateCalories.toString(), /remainingCalories\s*=\s*budgetCalori
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -103,7 +103,7 @@ assert.match(calculateCalories.toString(), /surplusOrDeficit\s*=\s*remainingCalo
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -85,7 +85,7 @@ assert.equal(htmlString, '``');
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -101,7 +101,7 @@ assert.match(htmlString, /<span\s+class\s*=\s*"\$\{surplusOrDeficit\s*\.toLowerC
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -78,7 +78,7 @@ assert.match(htmlString, /<span\s+class\s*=\s*"\$\{surplusOrDeficit\s*\.toLowerC
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -87,7 +87,7 @@ assert.match(htmlString, /<span\s+class\s*=\s*"\$\{surplusOrDeficit\s*\.toLowerC
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -94,7 +94,7 @@ assert.match(htmlString, /\n\s*<hr\s*\/?>/);
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -101,7 +101,7 @@ assert.match(htmlString, /<p>\$\{budgetCalories\}\s*Calories\s*Budgeted<\/p>/);
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -99,7 +99,7 @@ assert(htmlString.match(/<p>\$\{consumedCalories\}\s*Calories\s*Consumed<\/p>/))
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -91,7 +91,7 @@ assert.match(calculateCalories.toString(), /output\.classList\.remove\(\s*('|")h
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -91,7 +91,7 @@ assert.match(code, /calorieCounter\.addEventListener\(\s*('|")submit\1\s*,\s*cal
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -89,7 +89,7 @@ assert.match(clearForm?.toString(), /\(\s*\)/);
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -89,7 +89,7 @@ assert.match(clearForm.toString(), /inputContainers\s*=\s*document\.querySelecto
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -85,7 +85,7 @@ assert.match(clearForm, /inputContainers\s*=\s*Array\.from\(\s*document\.querySe
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -96,7 +96,7 @@ assert.match(forLoop, /inputContainers\[\s*i\s*\]\s*\.innerHTML\s*=\s*(`|'|")\1\
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -91,7 +91,7 @@ assert.match(afterLoop, /budgetNumberInput\.value/);
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -91,7 +91,7 @@ assert.isAbove(clearForm.toString().indexOf('output'), clearForm.toString().inde
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -91,7 +91,7 @@ assert.match(clearForm.toString(), /output\.classList\.add\(\s*('|")hide\1\s*\)/
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
@ -91,7 +91,7 @@ assert.match(code, /clearButton\s*\.addEventListener\s*\(\s*('|"|`)click\1\s*,\s
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
@ -366,7 +366,7 @@ calorieCounter.addEventListener("submit", calculateCalories);
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" id="calculate-calories">
|
||||
<button type="submit">
|
||||
Calculate Remaining Calories
|
||||
</button>
|
||||
<button type="button" id="clear">Clear</button>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user