What does a Jack-in-the-Box do?

A jack-in-the-box plays a tune, then POP — out springs a smiley friend!

▶ what THAT toy do?!