Thanks.
I just registered to ask this exact same question. It was a little strange to see someone else asked it.
I thought from project 1 that the resistor needed to be before the LED in order to prevent the LED from burning out. Then, in project 2 the resistor is on the other side of the LED, and the book really didn't explain why this was the case.
Thanks for the explanation!