It is a semiconductor device that is widely used in electronic circuits as an amplifier or a switch. Transistors come in different types, such as NPN and PNP, and can be used in different configurations, such as common base, common emitter, and common collector.