Javascript - How to convert an array of objects to a string you can use with document.getElementByID : What I need is to be able to call on an Array, like this: "myArray[0]" and have the Object in that position come out as a readable string. Here is my code. The alert just says "object Object" - but you can't read it. 


var test = [myObject = {name: 'tristyn', 
                bed: 'felicity',
                quote: '$1,000'
                       },
    myObject2 = {name: 'tristyn', 
                bed: 'felicity',
                quote: '$1,000'
                       }
           ];
alert(test[0]);