One output becomes the next input

A gate produces a 0 or 1 signal. A wire can carry that signal into another gate.

Here, an AND gate feeds into a NOT gate. Toggle A and B. Watch the first result become the next input.

Connecting gates lets one small rule build on another.