JavaScript

Kortney Field
Kortney Field
13,592 Points

This worked for me... API fetch url change. You need to add /all to your URL.

fetch(https://cors-anywhere.herokuapp.com/https://dog.ceo/api/breeds/list/all) .then(response=>response.json()) .then(data => generateOptions(data.message))

function generateImage(data) { const html= <img src = '${data}'> <p>Click to view Images of ${select.value}s</p> ; card.innerHTML = html; }