How does a Capacitor protect against voltage spikes?
capacitors are not very good for spike protection and are rarely used for that purpose, because they cannot respond fast enough. Capacitors do much better in holding up the voltage during times of voltage "sag" in a circuit