May I use numeric in a javascript object?
<p>It is my understanding that objects' keys are always strings. However, I believe numeric values would be translated to string if used as key, implying it would not be some kind of forbidden value type.
Since we don't use quotes around string keys, writing stuff like this :</p>

<pre><code>{
    a: "a_value",
    b: "b_value", [...]
}
</code></pre>

<p>... I thought it could be easier to read stuff like that :</p>

<pre><code>{
    1: "first_value",
    4: "whatever", [...]
}
</code></pre>

<p>So my question is : is it really considered bad practise to use numeric values as keys, or may I do it, at least for the sake or readability ?</p>

<p>Thanks.</p>
