Transistors

Remember the switch you clicked at the start?

A transistor is exactly that. A switch.
But tiny, and with no moving parts.

Signal on, electricity flows through.
Signal off, electricity stops.

On, or off.

That is all a transistor does.
But there are many of them.