A transistor is a semiconducting device that is used as a switch or an amplifier in an electronic circuit. There are to types of transistors which are known as Field Effect Transistors (FET) and Bipolar Junction Transistors (BJT).
Therefore, a transistor is a semiconducting device which amplifies and switches input signals, and BJT is a type of transistor.
Learn more: