"Diamonds"
Bootstrap 4.1.1 Snippet by lavan

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html> <html> <body> <p id="demo"></p> <script> var a="" for(var k=0;k<=5;k++){ a+="<br/>" for(var j=0;j<=k;j++){ a+="*" } } for(var l=5;l>=0;l--){ a+="<br/>" for(var v=l;v>=0;v--){ a+="*" } } document.getElementById("demo").innerHTML = a </script> </body> </html>

Related: See More


Questions / Comments: