how to list an array of objects

how to list an array of objects

how would you "dump" the content of array of objects below

  1. function AttributeNodeClass(){
  2. this.name="";
  3. this.type="";
  4. this.description="";
  5. this.controls="";
  6. this.class="";
  7. }

  8. function AttributeIteratorClass(){
  9. this.attributeCatalog = new Array();
  10.     this.add = function add(oAttributeNode){
  11.         this.attributeCatalog.push(oAttributeNode); 
  12.     }//END function add(oAttribute)
  13.     this.dumpThis = function dumpThis(){
  14.         for(i=0: i< attributeCatalog.length; i++){
  15.         console.log(attributeCatalog[i].name);
  16.         }
  17.     
  18.     }//End function dumpThis()


  19. }//End AttributeIteratorClass()

  20. var one = new  AttributeNodeClass();
  21.     one.name="this";
  22.     one.type="integer";
  23.     one.class="circle";
  24.     
  25. var two = new  AttributeNodeClass();
  26.     two.name="that";
  27.     two.type="number";
  28.     two.class="line";
  29.     
  30.     var three = new  AttributeNodeClass();
  31.     three.name="the other";
  32.     three.type="stringr";
  33.     three.class="rectangle";
  34.     
  35.     var catalog = new AttributeIteratorClass();
  36.     catalog.add(one);
  37.     catalog.add(two);
  38.     catalog.add(three);

  39. catalog.dumpThis();
  40.