for (i = 10; i >= 1; i--) { for (var k = 0; k < 10 - i; k++) { document.write(""); } for (j = i * 2 - 1; j >= 1; j--) { document.write("*"); } document.write("");} ...