In: Electrical Engineering
I will explain it with an example wave form of current and energy variations in INDUCTOR which can be same for CAPACITOR with waveform being VOLTAGE.
here is the example
So if we consider INDUCTOR as CAPACITOR here and CURRENT as VOLATGE which will be the working of CAPACITOR.
If you have any doubts please comment below I'll definitely respond quickly.. thank you