title: Uses of colon in javascript
body: <ol>
  <li>Assign object literal properties <code>var foo = { bar : 'hello'};</code></li>
  <li>Ternary <code>var cats = happy ? "yes" : "no";</code></li>
  <li>Label a statement <code>outer_loop: for(i=0; i&lt;3; i++)</code> </li>
  <li><strong>What else?</strong></li>
  </ol>
  
  <p>I'm poking through a sharepoint 2010 file and I keep running into this syntax</p>
  
  <pre><code>someFunction: ;
  </code></pre>
  
  <p>For instance, there is a file where the following function is declared near the top:</p>
  
  <pre><code>function ULSqvN() {
      var o = new Object;
      o.ULSTeamName = "SharePoint Portal Server";
      o.ULSFileName = "SocialData.js";
      return o;
  }
  </code></pre>
  
  <p>and then later in the file we find the following</p>
  
  <pre><code>PageUrlNormalizer = function () {
      ULSqvN: ; //&lt;---------------- This guy here --------------------------
      try {
          this._url = _normalizedPageUrlForSocialItem
      } catch (a) {
          this._url = ""
      }
  };
  </code></pre>
  
  <p><strong>What is this doing?</strong></p>
  
  <p><a href="http://jsfiddle.net/7mJPT/" rel="nofollow noreferrer">jsFiddle</a> with full file. This same <code>ULSqvN: ;</code> occurs 47 times in the file.</p>
  
  <p><strong>edit:</strong> Added full code.</p>
  
  <p><strong>PS:</strong> Consensus seems to be that the sharepoint use of colon is "not actual javascript, possibly used as a marker for some external purpose". The browser sees it as a vestigial label and so causes no errors. Thanks for all the replies, I have left the actual uses at the top so that the question contains the appropriate answers. <a href="https://stackoverflow.com/questions/4177001/what-does-this-javascript-code-do/7543257#7543257">question about same code</a></p>