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

前端 未结 6 2025
说谎
说谎 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:57

    I had a similar problem and the same error code when debugging someone else's work. To fix this I pasted the section of code into Notepad and then re-copied it back to Visual Studio. The error went away. I think whoever wrote the code originally must have copied it from somewhere with some strange characters in it.

提交回复
热议问题