title: javascript starnage issue , return undefined if block statements are used
body: <pre><code>function ok(){
  
  return 
     { 
       home : "OK"
      };
  
  }
  </code></pre>
  
  <p>when i code like this the function will return <code>undefined</code></p>
  
  <p><a href="https://i.stack.imgur.com/G1YCn.png" rel="nofollow"><img src="https://i.stack.imgur.com/G1YCn.png" alt="enter image description here"></a></p>
  
  <p>but if i just shift the <code>{</code> it starts working</p>
  
  <pre><code>function ok(){
  
  return { 
       home : "OK"
      };
  
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/xbREH.png" rel="nofollow"><img src="https://i.stack.imgur.com/xbREH.png" alt="enter image description here"></a></p>
  
  <p>Is this somekind of auto adding ';' at the end of line ?</p>