mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): update editable region and match solution (#52930)
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
This commit is contained in:
+5
-4
@@ -14,8 +14,8 @@ After adding the task to the page, you should close the form modal to view the t
|
||||
You should use `classList` to toggle the class `hidden` on `taskForm`.
|
||||
|
||||
```js
|
||||
const splitter = code.split("taskData.forEach")
|
||||
assert.match(splitter[1], /taskForm\.classList\.toggle\(('|")hidden\1\)/)
|
||||
const splitter = code.split("taskData.forEach")[1].split("});")
|
||||
assert.match(splitter[0], /taskForm\.classList\.toggle\(('|")hidden\1\)/)
|
||||
```
|
||||
|
||||
# --seed--
|
||||
@@ -329,9 +329,10 @@ taskForm.addEventListener("submit", (e) => {
|
||||
`)
|
||||
}
|
||||
);
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
});
|
||||
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user