function findMax() {
     var max = dog.data[0].count;
     var winner = dog.data[0];
     for (var i = 0; i < dog.data.length; i++) {
       if (dog.data[i].count > max) {
        max = dog.data[i].count
        winner = dog.data[i]
       }
     }
     return winner;
  }
// Find and return the dog breed with the highest count
Find and return the dog breed with the highest count
Find and return the dog breed with the highest count
function findMax() {
     var max = dog.data[0].count;
     var winner = dog.data[0];
     for (var i = 0; i < dog.data.length; i++) {
       if (dog.data[i].count > max) {
        max = dog.data[i].count
        winner = dog.data[i]
       }
     }
     return winner;
  }
function findMax ( ) { var max = dog . data [ 0 ] . count ; var winner = dog . data [ 0 ] ; for ( var i = 0 ; i < dog . data . length ; i ++ ) { if ( dog . data [ i ] . count > max ) { max = dog . data [ i ] . count winner = dog . data [ i ] } } return winner ; }
Find and return the dog breed with the highest count
Find and return the dog breed with the highest count