document.write(m); { } if(n == m) document.write(""); Right Triangle Star Pattern var i,j,k; } Program to print the chess board pattern in javascript. num = 5; * * * * * * * * * * * * * * * Pictorial Presentation: Sample Solution:-HTML Code: document.write(' '); This helps you to master looping and conditional statement. Before we begin, let’s look at the exact definition of a "pattern" in software design. for(n=2;n<=num;n++) for (m = num; m >= 0; m--) { { } this video show how to print star pattern using javascript .this video will help you to improve your basic concept of for loop using any language. JavaScript Conditional Statement and loops: Exercise-10 with Solution. var m,n,k; i--;