JSFiddle - React, Tailwind, and code Playground

by Kondal Durgam

JavaScript

$(document).ready(function() {
    var i;
    for (i = 10; i >= 0; i = i - 1) {
        var s;
        for (s = 0; s < i; s = s + 1) {
            document.write("*");
        }
        //i want this to print a new line
        document.write("<br>");

    }
});