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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -