What does "function() { get: function(...) { ... } }" in JavaScript mean?
<p>I found the following code snippet <a href="http://www.yearofmoo.com/2012/10/more-angularjs-magic-to-supercharge-your-webapp.html#you-should-be-using-custom-services" rel="nofollow">here</a>:</p>

<pre><code>App.factory('myHttp',['$http',function($http) {
  return function() {
    get: function(url, success, fail) {
      $http.get(url).success(function(response) {
        return response.data;
      }).error(fail);
    }
  };
}]);
</code></pre>

<p>I wonder what does this syntax mean:</p>

<pre><code>function() {
  get: function(...) { ... }
}
</code></pre>
