title: Does returning a value in the request handler of an express route do anything?
body: <p>The question is simple: <strong>Does returning a value in the request handler of an express route do anything?</strong></p>
  
  <hr>
  
  <p>I've seen people return the response of the request handler:</p>
  
  <pre><code>route.get('/something', (req, res) =&gt; {
    // blah blah
  
    if (/* something */) {
      return res.send('something'); // return on the same line
    }
  
    return res.send('something else');
  });
  </code></pre>
  
  <p>and I've seen people do an early return after sending a response:</p>
  
  <pre><code>route.get('/something', (req, res) =&gt; {
    if (/* something */) {
      res.send('something');
      return; // return after
    }
  
    res.send('something else');
    return;
  });
  </code></pre>
  
  <p><strong>Is there any difference?</strong> Does the returned value get used at all?</p>