So now what happens when we run our averageAgeInSeconds function on 'boisverts'? It'll run just dandy, but while the correct answer is 18.9 years, the result will be 14.8 years. The reason is that it'll count Emery and Lindsay twice (once as Barney's children and again...
But that isn’t correct. Thinking back to the domino triangle quickly shows why. If you were to take two copies of the triangle to make a rectangle (the reason the triangle area formula works), you’d see that you’d have to offset them by one domino in one direction, so the rectang...
But that isn’t correct. Thinking back to the domino triangle quickly shows why. If you were to take two copies of the triangle to make a rectangle (the reason the triangle area formula works), you’d see that you’d have to offset them by one domino in one direction, so the rectang...
 So now what happens when we run our averageAgeInSeconds function on 'boisverts'? It'll run just dandy, but while the correct answer is 18.9 years, the result will be 14.8 years. The reason is that it'll count Emery and Lindsay twice (once as Barney's children and again...
 So now what happens when we run our averageAgeInSeconds function on 'boisverts'? It'll run just dandy, but while the correct answer is 18.9 years, the result will be 14.8 years. The reason is that it'll count Emery and Lindsay twice (once as Barney's children and again...