title: Why can't I return same objects from two different functions?
body: <p>I'm not familiar with javascript programming. But I understand most of it concepts.</p>
  <p>I have two functions.</p>
  <pre><code>function func1(){
      return {
          test1: &quot;success&quot;
      };
  
  }
  function func2(){
      return
      {
          test2: &quot;success&quot;
      };
  }
  </code></pre>
  <p>Both functions supposed to return a same object. But when I run it, the first function was successfully return the object, but the second wasn't.</p>
  <p>What did I miss? Thanks</p>