Simple circuit to show BJT-npn transistor used as a switch. When you close the mechanical switch, the current to the Base let flow current from Emitter to Collector to light the lamp. From 'The Art of Electronics' - Horowitz & Hill. See the book for more details.