Why does the value returned should be on the same line as the return statement in JavaScript? -


The following does not work because I expect:

  function testing () {// Return to drawback, even if I thought it would return 1 return 1; }   

Obviously, the value should be on the same line: back 1; . Why can I write such things

  // 1 to fix foo, 1;   

... but the return statement does not work the same way?

This is clearly part of the language. If this does not happen, then still should be return problems:

  if (some ()) return counter = counter + 1 ;   

Without a semicolon entry rule, which is missing the semicolon, it increases the behavior (which I argue) as weirdly now with return Has been new line

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -