The on/off switch is provided with a live wire.
What is a switch?
An electric switch is a device that disrupts the electron flow in a circuit. Switches are fundamentally binary devices: either fully on or off and light switches have a simple mechanism. When the switch is turned off, the circuit breaks and the power flow is interrupted.
Working of a switch
Electrical switches work according to a primary design. The most common switches are the on/off toggle ones. A toggle on/off circuit breaks the current when it is off. The current or loop completes itself when it’s in the on position.
The wire connected to switch
The sitch is always connected to a live wire. A switch in the electrical circuit is always connected to the live wire
so that the socket/appliance is not live when it is switched off. If the switch were connected to the neutral wire, then the appliance would still get electricity when the switch is turned off. By connecting to the live wire, it ensures that no electricity flows in the appliance when it is switched off. Otherwise, we may observe a shock while operating on it with the switch off.