title: Usage of Javascript syntax : method(param1,param2,(something)=>{//some code},param4);
body: <p>This method syntax seems to be little strange. </p>
  
  <p>Here is the method declaration. Some normal javascript method implementation.</p>
  
  <pre><code>sendHttpRequest: function (aUri, aUploadData, aContentType, aExisting, aSetupChannelFunc, aFailureFunc, aUseStreamLoader = true) {
      //method implementation
  }
  </code></pre>
  
  <p>This is the actual usage. There what does mean by using ()=>{//some statements} as a parameter?</p>
  
  <pre><code>function someFunction(){
      this.calendar.sendHttpRequest(requestUri, queryXml, MIME_TEXT_XML, null, (channel) =&gt; {
         //some statements
          return this;
      }, () =&gt; {
          if (this.setA &amp;&amp; this.setB) {
         //some statements
          }
      }, false);
  
  //someFunction's statements
  
  }
  </code></pre>