javascript - Uncaught SyntaxError: Unexpected identifier "," using chessboard.js -
i making chess engine using chessboard.js have problem... coding wrong this:
var board, game = new chess();
and page says:
uncaught syntaxerror: unexpected identifier
my html is:
<!doctype> <html> <head> <title>chess</title> <link rel="stylesheet" href="css/chessboard-0.3.0.min.css"> <script src="https://code.jquery.com/jquery-1.12.4.min.js"></script> <script src="js/chessboard-0.3.0.min.js"></script> </head> <body> <div id="board" style="width: 400px"></div> <script src="pro chess.js"></script> </body> </html>
thanks!
webpage at: chessboardjs.com/
should semi colon, not comma. semi colon used denote end of statement.
var board; game = new chess();
Comments
Post a Comment