mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): update specific methods not used in todo app workshop (#59864)
This commit is contained in:
+2
-2
@@ -40,9 +40,9 @@ assert.match(code, /openTaskFormBtn\.addEventListener\(\s*('|"|`)click\1/)
|
||||
Your event listener's callback function should use the `classList.toggle()` method to toggle the `hidden` class on the `taskForm` element. Refer back to the example provided in the description.
|
||||
|
||||
```js
|
||||
assert(taskForm.classList.contains('hidden'));
|
||||
assert.isTrue(taskForm.classList.contains('hidden'));
|
||||
openTaskFormBtn.click();
|
||||
assert(!taskForm.classList.contains('hidden'));
|
||||
assert.isFalse(taskForm.classList.contains('hidden'));
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
Reference in New Issue
Block a user