title: Length of a JavaScript associative array
body: <p>I have a JavaScript associative array <strong>(or some may prefer to call it an object)</strong> like, say</p>
  <pre><code>var quesArr = new Array();
  quesArr[&quot;q101&quot;] = &quot;Your name?&quot;;
  quesArr[&quot;q102&quot;] = &quot;Your age?&quot;;
  quesArr[&quot;q103&quot;] = &quot;Your school?&quot;;
  </code></pre>
  <p>Is there a built-in function that could get the length of this array, or a solution in jQuery or another library? Currently quesArr.length would give 0, as most of you must be knowing.</p>
  <p><strong>Please don’t suggest iterating over the entire array/object as mentioned in <a href="https://stackoverflow.com/questions/5223/length-of-javascript-associative-array">this question</a>, because the array/object which I have is very large.</strong></p>
  <p>Is there a way I could proceed with this?</p>