Bug zappers work by emitting a UV light that attracts bugs to the center of the device, where they're electrocuted, usually between two metal grids. Because of the irresistible lure of their light, bug zappers are incredibly effective at killing bugs.