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

前端 未结 6 1981
说谎
说谎 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

    I copied your code into jsfiddle, and Chrome too gives an error. I deleted the word "function", and re-typed "function", and it worked fine.

    There must be some extra character there.

提交回复
热议问题