Led on breadboard burned out why?
simulate this circuit &ndash; Schematic created using CircuitLab

Figure 1. (a) Correct. (b) Incorrect.

In your first photo the resistor is in series with the LED. This is correct.

In your second photo your resistor is inserted into two points on the same track. The track is bypassing the resistor with its own much lower resistance (almost zero in comparison) so there is no current limiting to the LED. It should be clear from Figure 1b that you have applied 9 V directly across the LED.

The red and blue lines on the edge of the board indicate that those strips are continuous.







simulate this circuit

Figure 2. (b) is more efficient than (a).

You can extend your battery life by wiring your LEDs in strings of three. The same current can then light up three LEDs rather than one so your battery will last three times longer.