A JavaScript implementation for a technical test to score a game of 10 pin bowling