I am having some troubles. We had an assignment in the JavaScript class that I am taking to create a game of Hangman using module pattern.
I have succeeded with making it function, however, my code does not pass the Jslint validation test. It keeps giving me one error and I have no idea how to get rid of it.
Read below what it says. hangman.js: line 221, col 30, Expected an assignment or function call and instead saw an expression.
I have tried to remove everything on line 221 but then my code does not work anymore. Please help me.
line 221 hangman.wrongCount = 0;
Here is a link to a fiddle in which I have put all my code. And note, it is ONLY line 221 in the javascript that is creating problem, the rest you can ignore.
Link to fiddle: http://jsfiddle.net/1nvaahyv/
Thanks in advance!