What is a Logic Gate?
Computers are made up of logic gates. These components contain a number of inputs and an output based on those inputs, both of these things are typically binary. This means that they can have one of two values, like on or off, 1 or 0, high or low, true or false, etc. In order to describe the behavior of a logic gate a truth table is typically used which states the expected output for each input configuration.
Can You Give an Example?
An example of a logic gate is the nand gate, which has the following truth table:
So for example, the nand gate is true, unless both inputs are true.
Why are we Starting with the Nand Gate?
Because it is one of the few gates that is a universal gate, which means that you can make any other type of gate using it. There are other such gates but this is the simplest to make.