
The most adaptable of the basic flip-flops is the J-K flip-flop. It has the same input-following behaviour as a timed D flip-flop, but it has two inputs, typically designated J and K. If J and K vary, the output Q is set to the value of J at the next clock edge.