Another noob question about resistors

klamarth:
Hi, I am learning eletronics and Arduino right now, and I have one question about resistors.

In some examples the resistor is placed between Pin wire and the Led

In another examples the resistor is placed between Led and ground wire

So, wich on is the correct?

They both are. In a series circuit such as that, it does not matter the order of how the led and resistor are wired. What is important is that the diode direction is wired correctly as it will not function if wired backwards, and that the resistor have the proper ohm and wattage values for the circuit it's being used in.

Lefty