Missing ) in parenthetical error, but everything seems to be closed off properly

前端 未结 1 1282
醉梦人生
醉梦人生 2021-01-22 07:48

I\'m getting the missing ) error from the following code. JS Hint says a ) is expected from the top line, but \"if\" found instead.

denom = (((theZombies[j].y +         


        
相关标签:
1条回答
  • 2021-01-22 08:30

    Your characters are atually U+2013 EN DASHes, which are not legal in Javascript.

    You need to use U+002D HYPHEN-MINUS instead.

    0 讨论(0)
提交回复
热议问题