What is Logic gate?

Logic gates are primarily implemented electronic circuit by using diodes or transistors acting as electronic switches, and also be constructed for the replacement of electromagnetic relays.