title: how to print based on value entered
body: <p>so If I entered 10, number 10 should be printed ten times </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>function function_name(number) {
    for (var counter = 1; counter &lt;= number; counter++) {
      document.write("the number is" + number);
    }
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;label for="number"&gt;Enter number: &lt;/label&gt;
  &lt;input name="number" id="number" /&gt;</code></pre>
  </div>
  </div>
  </p>