so drucken Sie von einer neuen Zeile in javascript

<!DOCTYPE html>
<html>

<head>
    <title>multiplication table</title>
</head>

<body>
    <script type="text/javascript">
    var i, j;
    var m = 1;

    for (i = 1; i <= 10; i++) {
        for (j = 1; j <= 10; j++) {
            document.write(i * j);
        }
        document.write("\n");
    }
    </script>
</body>

</html>

Ausgabe:

12345678910 2468101214161820 36912151821242730 481216202428323640
5101520253035404550 6121824303642485460 7142128354249566370
8162432404856647280 9182736455463728190 102030405060708090100

gibt es die Ausgabe auch ohne den Druck der neuen Linie. Ich möchte diese ausführen, ohne mit

InformationsquelleAutor Poushali | 2015-07-10
Schreibe einen Kommentar