<script>
var xingxing = '';
for (var i = 0; i < 6; i++) {
for (var j = 0; j < i; j++) {
xingxing =xingxing + '*';
}
xingxing =xingxing+ '\n';
}
alert(xingxing);
</script>
<script>
var xingxing = '';
for (var i = 0; i < 6; i++) {
for (var j = 0; j < i; j++) {
xingxing =xingxing + '*';
}
xingxing =xingxing+ '\n';
}
alert(xingxing);
</script>