javascript style - should I define variables/classes?
<p>Many functions in my code use this structure:</p>

<pre><code>options = {"param1": "yes", "param2" : "no"}
</code></pre>

<p>In JS I do not have to "define" this structure since it is a dynamic language.</p>

<p>But when I know the structure has a fixed set of fields, is it a best practice to declare it in some centralized way, just for clearness? The same goes for usage in local data members in a class. Is it a best practice to init all of them in a ctor or some other centralized way (for clearness)?</p>

<p>I know I could do that in comment but coming from a static language I want to know what is the javascript style.</p>
