<script> var n = 7; for (var line = "*", space = new Array(n).join("\u2007"); line.length <= 2*n; line += "**", space = space.slice(1)){ document.write(space+line + '<br/>'); } </script>