Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

vertical lineal star pattern javascript


let rows = 5;
let t = "";
function rem1() {
    for(let i = 1; i <= rows; i++){
        for(let j = 1; j <= rows; j++){

        t = " *";
        }
        document.getElementById("sum4").innerHTML += t + "<br />";
        t++;
    }
}
 
PREVIOUS NEXT
Tagged: #vertical #lineal #star #pattern #javascript
ADD COMMENT
Topic
Name
1+3 =