I would be grateful if someone can assess my code for JSON skill test. plus I had a doubt -
- Why are the
para1.textContent = motherInfo;
andpara2.textContent = kittenInfo;
lines inside thedisplayCatInfo()
function, and not at the end of the script? This has something to do with async code.
I did not understand this part in mdn article