A transistor is a semiconductor gadget used for amplifying or switching electronic signals and electrical power.