What is a transistor?
A transistor is a 3- or 4-electrode, semiconductor electronic element that has the ability to amplify, control, generate or switch electrical signals. These devices are most commonly used as components of microprocessors.
Transistor as a switch
Bipolar transistors are used in various amplifying and modulating circuits. The most common application is full on/off operation, referred to as a switch. They can also be used as amplifiers or oscillators.