title: How do you multiply a number by itself multiple times using a Javascript for loop?
body: <p>This is the input box part (HTML). Definition of the function and my currently unfilled for loop.</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-html lang-html prettyprint-override"><code>&lt;input type="number" id="num1"&gt;&lt;!--Fill in the number--&gt;
  &lt;input type="number" id="num2"&gt;&lt;!--Fill in the power--&gt;
  &lt;button onClick="multByItself()"&gt;Enter&lt;/button&gt;
  
  &lt;script&gt;
  function multByItself(){
    var num1 = document.getElementById("num1");
    var num2 = document.getElementById("num2");
    for(var i = 0; i &lt; num2; i++){
      // I am unsure what to fill in here
    }
  }
  &lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>