fix(curriculum): update specific methods not used in todo app workshop (#59864)

This commit is contained in:
Clarence
2025-04-21 19:51:52 +01:00
committed by GitHub
parent 41a1ad3a20
commit aef4729ce3
@@ -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--