imageLink
key with a value that is the URL of a cat's image.
When you're looping through these objects, you can use this imageLink
property to display this image in an img
element.
Here's the code that does this:
html += "<img src = '" + val.imageLink + "' " + "alt='" + val.altText + "'>";
imageLink
and altText
properties in an img
tag.
imageLink
property to display the images.
testString: 'assert(code.match(/val\.imageLink/g), "You should use the imageLink
property to display the images.");'
```
```