title: I was asked this question by my friends and the answer was no to this, can anyone explain me this?
body: <p>Consider the two functions below. Will they both return the same thing? Why or why not?</p>
  <pre><code>function foo1()
  {
    return {
        bar: &quot;hello&quot;
    };
  }
  
  function foo2()
  {
    return
    {
        bar: &quot;hello&quot;
    };
  }
  </code></pre>