title: How to display the Array length in console with JavaScript/AngularJS
body: <p>I have a question about displaying the Array length in console.log().</p>
  
  <p>Here is a simple example:</p>
  
  <pre><code>vm.list = CrudService.getAllData();
  
  function getAllFonds() {
     return ResService.names.query(
        succResp,
        errResp
     );
  }
  
  function succResp(resp) {
     return resp;
  }
  
  function ResService($resource, baseUrl) {
      return {
          names: $resource(baseUrl + '/api/list/:Id', {
              Id: '@Id'
          }, {
              'update': {
                  method: 'PUT'
              }
          }),
      ....}
   }
  
  $log.info(vm.list);
  </code></pre>
  
  <p>When I'm opening the console, there will be display only:</p>
  
  <pre><code>Array [ ]
  </code></pre>
  
  <p>Only when I click on "Array" then I see on the right side that the array contains 47 objects.</p>
  
  <p>Is there a possibility to display in console:</p>
  
  <pre><code>Array [47]
  </code></pre>
  
  <p>?</p>
  
  <p>EDIT:</p>
  
  <p>When I'm using:</p>
  
  <pre><code>$log.info(vm.list.length);
  </code></pre>
  
  <p>it returns 0.</p>