Debugging a simple JavaScript code
<p>Started learning Javascript and I wrote something like this in FireBug of FireFox:</p>

<pre><code>var myObject = {
"first_name" : "Rick",
"last_name" : "Hummer"
};

var name;
for (name in myObject) {
if(typeof myObject[name] != 'function') {
  (name + ' : ' + myObject[name])
}

}
</code></pre>

<p>When I run it, it only shows the last name,  shouldn't it also list first name ?</p>

<p>Plus how can I put break points and debug this anyway? </p>

<p><img src="http://i.stack.imgur.com/M3Q1v.png" alt="enter image description here"></p>
