"Resistors are often used in combination with capacitors in order to control the charge and discharge time necessary for the intended application. Resistance directly affects the time required to charge a capacitor.
As resistance increases, it takes more time to charge a capacitor."
In the simulation below, it might be observed that ON-OFF states can be seen by using caps and resistors because of controlling R-C timing.
Link: https://tinyurl.com/yzj9ff5b
"Resistors are often used in combination with capacitors in order to control the charge and discharge time necessary for the intended application. Resistance directly affects the time required to charge a capacitor. As resistance increases, it takes more time to charge a capacitor."