• + 34 comments

    Simple javascript solution

    for (let i = 1; i <= n; i++) {
        console.log("#".repeat(i).padStart(n));
    }