Circuit Lab

+A9 V470 Ω0 A
Click the switch. The resistor limits the LED current to about 15 mA. Try 100 Ω and watch it burn.