I just ran into a problem where I did this:
return
isSomething() &&
isSomethingElse();
which does not work because javascript inserts a semicolon after returning, making the above equivalent:
return;
isSomething() && isSomethingElse();
This completely puzzled me about why he was doing this. I found some StackOverflow questions on the topic (like this , this and this ), but they just explain when this is done, referring to the specifications .
, return;, javascript ( goto , , - javascript, ). , .
, . ?
: , . , , , , JavaScript, , . , , , , , .