fix: update regex for Convert JSON Data to HTML (#41134)
* fix: updated solution for Convert JSON Data to HTML * Update curriculum/challenges/english/04-data-visualization/json-apis-and-ajax/convert-json-data-to-html.md Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com> * Update curriculum/challenges/english/04-data-visualization/json-apis-and-ajax/convert-json-data-to-html.md Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com> Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
@ -55,7 +55,7 @@ Here is some example JSON
|
|||||||
Your code should store the data in the `html` variable
|
Your code should store the data in the `html` variable
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert(code.match(/html\s+?(\+=|=\shtml\s\+)/g));
|
assert(__helpers.removeWhiteSpace(code).match(/html(\+=|=html\+)/g))
|
||||||
```
|
```
|
||||||
|
|
||||||
Your code should use a `forEach` method to loop over the JSON data from the API.
|
Your code should use a `forEach` method to loop over the JSON data from the API.
|
||||||
|
Reference in New Issue
Block a user