javascript - Validation error in JSlint -
i having troubles. had assignment in javascript class taking create game of hangman using module pattern.
i have succeeded making function, however, code not pass jslint validation test. keeps giving me 1 error , have no idea how rid of it.
read below says. hangman.js: line 221, col 30, expected assignment or function call , instead saw expression.
i have tried remove on line 221 code not work anymore. please me.
line 221 hangman.wrongcount = 0;
here link fiddle in have put code. , note, line 221 in javascript creating problem, rest can ignore.
link fiddle: http://jsfiddle.net/1nvaahyv/
thanks in advance!
the problem lies in preceding line (note comma):
hangman.guessedletters = [], hangman.wrongcount = 0;
Comments
Post a Comment