mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-22 21:08:12 +08:00
fix(curriculum): Update test to accept 'let' (#53653)
This commit is contained in:
parent
db051d5c16
commit
8e93c658cd
@ -17,7 +17,7 @@ Your `for...of` loop should iterate through the `inputContainers` array. The loo
|
||||
|
||||
```js
|
||||
const clearForm = code.split("function clearForm()")[1];
|
||||
assert.match(clearForm, /for\s*\(\s*const\s+container\s+of\s+inputContainers\s*\)/);
|
||||
assert.match(clearForm, /for\s*\(\s*(const|let)\s+container\s+of\s+inputContainers\s*\)/);
|
||||
```
|
||||
|
||||
Your `for...of` loop should set the `innerHTML` property of `container` to an empty string.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user