JavaScript - Iterate through object properties
<p><strong>Beginners JavaScript</strong></p>

<p><strong>Code</strong></p>

<pre><code>var obj = {
    name: "Simon",
    age: "20",
    clothing: {
        style: "simple",
        isDouche: false
    }
}

for(var propt in obj){
    alert(propt + ': ' + obj[propt]);
}
</code></pre>

<p><strong>Question</strong></p>

<p>How does the variable 'propt' represents the properties of the object? It's not a built-in method, or property. Then why does it comes up with every property in the object?</p>

<p>I hope I'm not asking stupid questions, I couldn't find any answers.</p>
