title: Printing a record in Javascript
body: <p>I have a record that contains the following.</p>
  
  <pre><code>var web = [{
              url : "www.facebook.com",  
              content : "Social Media Website." 
             },
             {
              url : "www.reddit.com",
              content : "A vast forum for different topics" 
             }] ;
  </code></pre>
  
  <p>I am trying to print out the url part of the record by doing the following</p>
  
  <pre><code>for(var i=0;i&lt;web.length;i++)
  {
      alert({"url":web[i].url,"description":web[i].content})    
  }
  </code></pre>
  
  <p>but I am getting as an output <code>[object Object]</code>.</p>
  
  <p>Any help is appreciated.</p>