<head> <script type="text/javascript"> src="hangman.js"; </script> <title>Hangman</title> </head>
Inside the hangman.js file, I have this line:
function makeWord()
When I try to call the function (which generates a random integer, and then picks a word from many based on the number), the editor (and Firefox) tell me that in the call line,
word = makeWord();
"makeWord is not defined"...have I done something wrong???

New Topic/Question
Reply



MultiQuote




|