title: path.join vs path.resolve with __dirname
body: <p>Is there a difference when using <em>both</em> <code>path.join</code> and <code>path.resolve</code> with <code>__dirname</code> for resolving absolute path in Node.js?</p>
  <p>Should one of them be preferred when being used like that (absolute path resolutions are 90% of use cases)?</p>
  <p>I.e.</p>
  <pre><code>const absolutePath = path.join(__dirname, some, dir);
  </code></pre>
  <p>vs.</p>
  <pre><code>const absolutePath = path.resolve(__dirname, some, dir);
  </code></pre>
  <p>Both methods normalize path.</p>