The next person, coming from either direction, must be able to turn the light on again. That’s where 3-way switches come in. Unlike single-pole switches, which control lights from one location, 3-ways ...
A light switch is the simplest of electrical devices. Flip the switch, electricity flows. Flip it again, electricity stops. Lights on, lights off. That's great for a small room with one entrance.