MOSFET as a switch and as a resistor
A 2N7000 with a knob on its gate: fully on with about 2 ohm left, fully off, and in between a resistor the gate voltage sets. Gate threshold, on resistance and why a MOSFET takes no gate current.
Open it in the simulator