You are viewing a single comment's thread. Return to all comments →
Love this solution! Did the same but more verbose.
for (let desc = n, asc = 1; 0 < desc; desc--, asc++) { console.log(" ".repeat(desc - 1) + "#".repeat(asc)); }
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 →
Love this solution! Did the same but more verbose.