fetch-dogs.js
// create select list of breeds from dog.ceo
create select list of breeds from dog.ceo
create select list of breeds from dog . ceo
function fetchBreeds() {
  const promise = fetch(BREEDLIST_API_URL);
  promise
    .then(function(response) {
      const processingPromise = response.json();
      return processingPromise;
    })
    .then(function(processedResponse) {
      const breedList = processedResponse.message;
      let breed;
      for (breed in breedList) {
        const option = document.createElement('option');
        option.value = breed;
        option.innerText = breed;
        breeds.appendChild(option);
      }
    });
}
function fetchBreeds ( ) { const promise = fetch ( BREEDLIST_API_URL ) ; promise . then ( function ( response ) { const processingPromise = response . json ( ) ; return processingPromise ; } ) . then ( function ( processedResponse ) { const breedList = processedResponse . message ; let breed ; for ( breed in breedList ) { const option = document . createElement ( 'option' ) ; option . value = breed ; option . innerText = breed ; breeds . appendChild ( option ) ; } } ) ; }
create select list of breeds from dog.ceo
create select list of breeds from dog . ceo