Mathematical manipulation on object in javascript
<p>I'm trying to manipulate the properties in an object like this:</p>

<pre><code>for (property in posts.data) {
    property = property+1+",";
    output += property;
}
document.write(output);
</code></pre>

<p>The properties are numerical: 0, 1, 2 etc.</p>

<p>I want to get the result 1,2,3 in this case. But instead I get 01,11,21, etc... It seems to treat the property as a text-string rather than a number. Why? And what can I do about it?</p>
