How do I fix this missing semicolon syntax error in Javascript?

前端 未结 6 2021
说谎
说谎 2020-12-08 02:24

A friend wrote some code for me, and there was one file with a weird syntax error in it. After a bit of hunting, I narrowed it down to this section of code, which should rep

6条回答
  •  鱼传尺愫
    2020-12-08 02:52

    Your issue is the fact that the i in function is the unicode character i. If you change it to a 'normal' i it should just work.

    But now I'm wondering how the hack :) did you get an unicode character there :P

    unicode error in js

提交回复
热议问题