You are viewing a single comment's thread. Return to all comments →
mine
var tempArr1, tempArr2; for (var i = 1; i <= n; i++) { tempArr1 = new Array(n-i); tempArr1.fill(' '); tempArr2 = new Array(i); tempArr2.fill('#'); console.log(tempArr1.concat(tempArr2).join('')); }
Seems like cookies are disabled on this browser, please enable them to open this website
Staircase
You are viewing a single comment's thread. Return to all comments →
mine