A transistor is a device where the ability for electrons/electron 'holes' to flow across a material boundary depends upon how many electrons are in a nearby area. A transistor is a device which allows an abstraction layer of three variables over a very complicated solid-state reality.