public/js/game.js
//return array of 3 breeds selected from the response
return array of 3 breeds selected from the response
return array of 3 breeds selected from the response
function showSelection(response){
  let length =  Object.keys(response).length
  let list = Object.keys(response);
  for (let i = 0; i<3; i++){
    breedList.push(picRandomItem(list, length))
  }
  return breedList
}
function showSelection ( response ) { let length = Object . keys ( response ) . length let list = Object . keys ( response ) ; for ( let i = 0 ; i < 3 ; i ++ ) { breedList . push ( picRandomItem ( list , length ) ) } return breedList }
return array of 3 breeds selected from the response
return array of 3 breeds selected from the response