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

前端 未结 6 2022
说谎
说谎 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 03:10

    You have misspelled the "function" :)

    var say = function(message){
        alert(message);
        return message;
    };
    
    say(say("Goodbye!"));
    

    You have inserted functіon :)

提交回复
热议问题