title: Create an empty object in JavaScript with {} or new Object()?
body: <p>There are <strong>two different</strong> ways to create an empty object in JavaScript:</p>
  
  <pre><code>var objectA = {}
  var objectB = new Object()
  </code></pre>
  
  <p>Is there any difference in how the script engine handles them? Is there any reason to use one over the other?</p>
  
  <p>Similarly it is also possible to create an empty array using different syntax:</p>
  
  <pre><code>var arrayA = []
  var arrayB = new Array()
  </code></pre>