Essential JavaScript

Dogs and Bones Kata

You run a dog daycare and want to give the dogs a treat today.

You just bought a basket of doggy bones to split evenly among your dogs.

You aren't sure how many bones are in the basket or how many dogs will show up today, but you plan to give each dog the exact same number of bones.

Write a function to determine how many bones you will have left over after dividing your bones evenly among your dogs.

Code Editor