title: How to find the logarithm of two numbers in JavaScript?
body: <p>Basically like the opposite of <code>Math.pow()</code>.</p>
  
  <p>I want a function which can be used as such a logarithm:</p>
  
  <pre><code>var mynum = findpower(36, 6); // 2, because 6 squared is 36
  </code></pre>
  
  <p>How could such a function be constructed?</p>