Why the logged value of a variable is not the same with it is wrote
<p>The logged value is shown below:<img src="http://i.stack.imgur.com/A4JAw.png" alt="enter image description here"></p>

<p>but why when I use <code>document.write</code> or <code>alert</code> it's a blank variable.</p>

<p>here's the code:</p>

<pre><code>$("#subTile").click(function(){
            var c=[[],[],[]];//content
            $(".col").each(function(){
                var r=$(this).attr("rel");
                r--;
                $(this).find(".bulk").each(function(i){
                    var t=$(this).find("input:eq(0)").val();//title
                    var img=$(this).find("input:eq(1)").val();//img url
                    var content=$(this).find("textarea").val();
                    if(t!=="")
                    {
                        c[r][i]=[];
                        c[r][i]["title"]=t;
                        c[r][i]["img"]=img;
                        c[r][i]["content"]=content;
                    }
                })
            });
            console.log(c);
            document.write(c);
</code></pre>
