title: Understanding Javascript Block - 2 returns?
body: <p>I'm not quite sure what the following JS code does:</p>
  
  <pre><code>myApp.factory('helloWorldFromFactory', function() {
      return {
          sayHello: function() {
              return "Hello, World!"
          }
      };
  });
  </code></pre>
  
  <p>The code will look famililar to those of you who use Angularjs but it's the two returns that are confusing me. I assume it is a typical technique in Javascript but one which I've not seen before.</p>
  
  <p>Could someone shed a little light on this for me?</p>