javascript – uncaught SyntaxError: Unexpected identifier game of cards-ThrowExceptions

Exception or error:

Good night, I am stuck with a code, it is a card game in which a winning card is randomly found, I already declared my functions, send print to call, etc. but when you open the winning card you do nothing when you should turn and show an image with the legend you won, in the console of
Chrome sends me the message SyntaxError: unexpected identifier for line 101 where I close my script, in firefox it tells me that the problem is with a parenthesis, can you help me?

enter image description here

How to solve:

enter image description here
wrong usage of setAttribute

onclick=”(img id=”dfsf”)”

when you run “(img id=”dfsf”)” ,you get the error

Leave a Reply

Your email address will not be published. Required fields are marked *