fix(curriculum): Update hint text for step 6 of todo app project (#54418)

This commit is contained in:
Somil Gumber 2024-04-18 10:09:37 +05:30 committed by GitHub
parent 29436877d0
commit e8080f0f46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,7 +37,7 @@ Your event listener should listen for a `click` event.
assert.match(code, /openTaskFormBtn\.addEventListener\(\s*('|"|`)click\1/)
```
Your event listener's callback function should contain `taskForm.classList.toggle("hidden")`.
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.match(code, /openTaskFormBtn\.addEventListener\(\s*('|"|`)click\1\s*,\s*\(\s*\)\s*=>\s*(?:{\s*taskForm\s*\.classList\s*\.\s*toggle\s*\(\s*('|"|`)hidden\2\s*\)\s*;?\s*}|\s*taskForm\s*\.classList\s*\.\s*toggle\s*\(\s*('|"|`)hidden\3\s*\)\s*;?\s*)\s*\)\s*;?/)