title: Why does Math.log(0) return -Infinity in JavaScript?
body: <p>When my <code>Math.log</code> value getting zero it is giving <code>-Infinity</code> value. Why it is giving negative Infinity value? Why only giving -Infinity rather giving +Infinity. Why only 0 value is giving this result.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>console.log(Math.log(0))</code></pre>
  </div>
  </div>
  </p>