Question: how a jack in the box works?
Answer: A jack-in-the-box is a children's toy that outwardly consists of a box with a crank. When the crank is turned, a music box mechanism in the toy plays a melody. ... Many of those that use "Pop Goes the Weasel" open at the point in the melody when the word "pop" would be sung.