Howdy Eric, I'm a huge fan of teaching by having people do small games, and I think the number guessing game is great (although it's not the most exciting game
) We do that same number guessing game at the beginning of Head First
Java; we like it for the same reasons -- it covers programming fundamentals in a very simple way (input and output, variables, testing/branching, possibly looping, etc.)
I'm not really knowledgeable about javascript, and obviously there's a little *more* overhead in learning to do this in javascript than in java, but with javascript the students can get it on the web and everyone can see it, so that's pretty compelling.
The only thing I'd say is that (especially because of the extra learning overhead involved in using javascript over java for this)
you should be brutal about knowing what to leave out when you first teach this. Be willing to say "you don't have to understand this part in any detail... we'll go into more about this later...". In other words, resist the siren song that makes you want to explain each topic that you have to touch on. If you build their confidence and reassure them that it's OK not to know and understand all of the pieces they're using, they'll be able to focus on nailing the key parts you want to teach at that point.
I think it sounds like a good plan, but again -- I don't know javascript enough to comment on the specific details.
cheers,
Kathy