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

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

    I've copied and pasted it in my notepad++ and your code look like this in my notepad++, retype your function keyword, i is replaced by ?.

    var say = funct?on(message) {
          alert(message);
          return message;
        };
        say(say("Goodbye!"));
    

提交回复
热议问题