A logic gate is an idealized or physical electronic device implementing a Boolean function, a logical operation performed on one or more binary inputs that produces a single binary output
The AND gate only likes when both inputs are truths/1s.
The OR gate likes everything except two falses/0s.
The NOT gate outputs the opposite of the input
The NAND gate likes everything except two truths/1s. Opposite outputs of the AND gate.
The NOR gate only likes when both inputs are falses/0s.
The XOR gate only likes when both inputs are different.
All gates can formed with NAND gates and is thus called the universal gate