what are the two main functions of a transistor?
A transistor is a miniature electronic component that can do two different jobs. It can work either as an amplifier or a switch: When it works as an amplifier, it takes in a tiny electric current at one end (an input current) and produces a much bigger electric current (an output current) at the other.