In Electroboom's "How to turn an LED On" video he mentions that (ideal) capacitors do not consume real power. I was trying to reason through this and would like to gauge the accuracy of my mental model.
Preface: I am not an engineer
For an AC power source connected to a resistor, the resistor will get hot and dissipate heat; power=voltage * current, or electrons flowing through the resistor, and the resistor gets hot.
For a ideal capacitor, could we say that no electrons actually flow through the capacitor so no heat is generated, rather a rising voltage charges the capacitor (work done on the capacitor), but when the negative voltage cycle comes around the capacitor discharges (capacitor does work on the surroundings) so there is no net work done and thus no real power consumption? In that case, would the general process of only charging a capacitor consume real power?