function score(answer) {
    if (answer == "gr") {
      dog.data[0].count++;
    } else if (answer == "is") {
      dog.data[1].count++;
    } else if (answer == "ch") {
      dog.data[2].count++;
    } else {
      dog.data[3].count++;
    }
  }
// When an answer code is selected, increase the dog object's count value.
When an answer code is selected, increase the dog object's count value.
When an answer code is selected increase the dog object ' s count value .
function score(answer) {
    if (answer == "gr") {
      dog.data[0].count++;
    } else if (answer == "is") {
      dog.data[1].count++;
    } else if (answer == "ch") {
      dog.data[2].count++;
    } else {
      dog.data[3].count++;
    }
  }
function score ( answer ) { if ( answer == "gr" ) { dog . data [ 0 ] . count ++ ; } else if ( answer == "is" ) { dog . data [ 1 ] . count ++ ; } else if ( answer == "ch" ) { dog . data [ 2 ] . count ++ ; } else { dog . data [ 3 ] . count ++ ; } }
When an answer code is selected, increase the dog object's count value.
When an answer code is selected increase the dog object ' s count value .