imageLink
con un valor que es la URL de la imagen de un gato. Cuando recorre estos objetos, puede usar esta propiedad imageLink
para mostrar esta imagen en un elemento img
. Aquí está el código que hace esto: html += "<img src = '" + val.imageLink + "' " + "alt='" + val.altText + "'>";
imageLink
y altText
en una etiqueta img
. imageLink
para mostrar las imágenes.
testString: 'assert(code.match(/val\.imageLink/g), "You should use the imageLink
property to display the images.");'
```
```