title: Why does returning one arrow function work and the other not?
body: <p>Both arrow functions should return the result, but why does only the first one work?</p>
  <p><strong>It works:</strong></p>
  <pre><code>const createUser = (name, email) =&gt; ({name, email})
  const user1 = createUser(&quot;User Test&quot;, &quot;test@test.com&quot;)
  console.log(user1)
  </code></pre>
  <p><strong>Does not work:</strong></p>
  <pre><code>const createUser = (name, email) =&gt; {name, email}
  const user1 = createUser(&quot;User Test&quot;, &quot;test@test.com&quot;)
  console.log(user1)
  </code></pre>