<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<script type="text/javascript">
for(var i= 1;i<12;i++){
for(var j=i;j>0;j--){
var c=(i==11||j==i||j==1)? ' *' : ' ';
document.write(c);
}
document.write('<br/>');
}
</script>
</body>
</html>