Using colons in javascript variable names (eg. a:b:c)
<p>I have just noticed that I can do the following in javascript...</p>

<pre><code>a:b:c:d = "happy days";
a:b:c = function(text){alert(text);};
</code></pre>

<p>I cannot however do...</p>

<pre><code>var a:b:c:d = "happy days"; 
// or
var myObj = {prop:a:b:c:d};
</code></pre>

<p>I was not expecting this syntax to work under any circumstances. Does anyone have any idea what is going on when I successfully use the 'a:b=x' notation?</p>
