What you're observing
The resistor limits current, and the capacitor stores charge. Voltage approaches the source exponentially, with time constant τ = RC.
dV꜀/dt = (Vₛ−V꜀)/(RC)
Electricity / Interactive Lab 05
Switch a capacitor between charging and discharging while exploring resistance, capacitance and supply voltage.
The resistor limits current, and the capacitor stores charge. Voltage approaches the source exponentially, with time constant τ = RC.