<!-- begin snippet: js hide: false console: true babel: false -->

<!-- language: lang-js -->

    var mT = parseInt(prompt("A tabuada de qual numero deseja ver?(preencha somente com o numero.)"));

    var n = 1;

    function mostra(frase) {
      document.write(frase);
      pL();
    };

    function pL() {
      mostra("<br>" + "<hr>" + "<br>");
    };

    while (n <= 10) {
      mostra(mT + " * " + n + " = " + mT * n);
      n = n + 1;
    };

<!-- language: lang-html -->

    <html>

    <head>
      <script>
      </script>
    </head>

    <body bgcolor=000000 text=FF0000>
      <script>
        console.log("apenas para o body :)");
      </script>
    </body>

    </html>

<!-- end snippet -->