A transistor is a switch with no moving parts: a few milliamps from a pin into its base let a current a hundred times bigger flow through a bulb on its own supply. This workbench needs JavaScript.