What happens to a dog when it eats table scraps?

when you feed a dog table scraps it will get a bit chubby