-
JavaScript tutorial 72 – Print patterns of numbers and stars
Print patterns of numbers and stars: Displaying stars in rows and columns using Javascript loops: var rows=5; var cols=5; for(var i=1;i<=rows;i++) { for(var j=1;j<=cols;j++) { document.write(” * “); } document.write(“<br/>”); } Output: * * * * * * * * * * * * * * * * * * * * * * *…