Transistors are electronic devices that serve two main functions: either as a switch, or as an amplifier. Several common types include:

Some other (more obscure) types of transistors also exist. For practical purposes, they’re not really important.