title: What's the difference between path.resolve and path.join?
body: <p>Is there some difference between the following invocations?</p>
  
  <pre><code>path.join(__dirname, 'app')
  </code></pre>
  
  <p>vs.</p>
  
  <pre><code>path.resolve(__dirname, 'app')
  </code></pre>
  
  <p>Which one should be preferred?</p>