Hi, I would like my work assessed.
link to the assessment: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Test_your_skills:_JSON#json_1
link to my Codepen: https://codepen.io/ashwinsoni86/pen/wvyWNxL
thanks in advance!!
Hi, I would like my work assessed.
link to the assessment: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Test_your_skills:_JSON#json_1
link to my Codepen: https://codepen.io/ashwinsoni86/pen/wvyWNxL
thanks in advance!!
Hi @ashwinsoni86 and sorry for the long waiting time ![]()
Nice work on this exercise! ![]()
Here are some comments:
/* harder to read */
catObj[i]["name"]
/* easier to read */
catObj[i].name
for..of:for (const kitten of catObj[i].kittens) { ... }
total++; in if and else. You could just put it outside the if...else condition once.Feel free to ask questions if something is unclear. ![]()
Happy coding,
Michael
Thanks @mikoMK for the feedback. I will definitely work on them.