fix(curriculum): Update test to accept 'let' (#53653)

This commit is contained in:
Yixuan Dai 2024-02-12 20:42:25 +08:00 committed by GitHub
parent db051d5c16
commit 8e93c658cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.