# Test your skills: JSON - Learn web development | MDN

**URL:** https://discourse.mozilla.org/t/test-your-skills-json-learn-web-development-mdn/93837
**Category:** Learn
**Tags:** learning, feedback
**Created:** [February 26, 2022, 5:49pm UTC](https://discourse.mozilla.org/t/test-your-skills-json-learn-web-development-mdn/93837 "2022-02-26T17:49:43Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Darnell\_X\_Daniell](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/darnell_x_daniell/32/51612_2.png) [@Darnell\_X\_Daniell](https://discourse.mozilla.org/u/Darnell_X_Daniell)
#### Post date: [February 26, 2022, 5:49pm UTC](https://discourse.mozilla.org/t/test-your-skills-json-learn-web-development-mdn/93837/1 "2022-02-26T17:49:43Z")

</div>

> **[Test your skills: JSON - Learn web development | MDN](https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Scripting/Test_your_skills:_JSON)**
>
> The aim of this skill test is to assess whether you've understood our Working with JSON article.

Hello all,  
Can someone please review my code in addition to providing feedback?

[link](https://codepen.io/EmperorXavier/pen/GROXYdN?editors=0010)

Much thanks!

---

<div class="post-metadata">

### Author: ![mikoMK](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/mikomk/32/50456_2.png) [@mikoMK](https://discourse.mozilla.org/u/mikoMK)
#### Post date: [February 27, 2022, 4:41pm UTC](https://discourse.mozilla.org/t/test-your-skills-json-learn-web-development-mdn/93837/2 "2022-02-27T16:41:58Z")

</div>

Welcome back, @Darnell_X_Daniell

Congratulations! Your code works as intended.

There are just two simplifications:

- Use `cat` instead of `catInfo[index]` in the `for...of` loop (line 26)
- Use `index` instead of `cat` in the `if` statement (and change the right side accordingly). Can you find out what I mean?

All the best,  
Michael
