Logic gates are the building blocks for how computer works.They are the switches that turn on or off depending on what the user is doing.
The three gates (OR, AND and NOT) give us basic logic gates such as NAND, and NOR gates, which are the universal building blocks of digital circuits.
Logic gates turn ON when a certain condition is true and OFF when the condition is false.
True=ON=1;False=OFF=0