title: What’s the difference between “{}” and “[]” while declaring a JavaScript array?
body: <p>What’s the difference between “{}” and “[]” while declaring a JavaScript array?
  Normally I declare like</p>
  
  <pre><code>var a=[];
  </code></pre>
  
  <p>What is the meaning of declaring the array as <code>var a={}</code></p>