View Single Post
 
Old June 3rd, 2008, 05:15 PM
Old Pedant Old Pedant is offline
Friend of Wrox
 
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

Well, just for starters, you are doing:
   letno = alphabit.indexOf(guessletter);

Ummm...you can't use indexOf on an *ARRAY*!

Try just changing to
   alphabit = "abcdefghijklmnopqrstuvwxyz";

Same thing with lettersguess array:

You've got many many errors in that code. So many that before I'd try fixing it I would just toss it away and start over.

You *NEED* to get yourself a *GOOD* JavaScript debugger. I'd recommend using FireFox browser and the FireBug debugger.