Explain the working principle of a MOSFET transistor.
A MOSFET (Metal-Oxide-Semiconductor Field-Effect Transistor) operates by varying the width of a channel along which charge carriers (electrons or holes) flow. The width of the channel is controlled by the voltage on an electrode called the gate, which is insulated from the channel, controlling the electrical conductivity of the device.