What's the difference when I enclose a method name inside a function in ' '?
<p>I have the following code:</p>

<pre><code> var factory = {
        query: function (selectedSubject) {
           ..
        }
 }
</code></pre>

<p>In Javascript is this the same as:</p>

<pre><code> var factory = {
        'query': function (selectedSubject) {
           ..
        }
 }
</code></pre>

<p>I have seen both used and I am not sure if there is any difference.</p>
