How does a Nerf Gun work?

How does a Nerf Gun work?