What's the purpose of the resistor in this circuit?
tocomment: Thanks for all the answers.  It's starting to make sense now.  Maybe I'll do better actually starting to build circuits than from reading books.