Logic gates are in fact the building block of digital electronics; they are formed by the combination of transistors (either BJT or MOSFET) to realize some digital operations (like logical OR, AND, INVERT ). Every digital product, like computers, mobile, calculators even digital watches, contain logic gates.