Another way to solve the problems we solved with the JK flip-flop can be solved with the D flip-flop. The problem of the simultaneous triggering of the circuit is prevented by having only a single input using an inverter. The single input is called Data D which is the reason for the circuit name. Since it would be totally pointless to have a circuit whose output only reflects its input, the chip is controlled by a clock. In other words, the output of the circuit will reflect the state of its input only during the edge of the clock.
References:
https://commons.wikimedia.org/wiki/File:JK-FlipFlop_(4-NAND).PNG