for(let i = 0; i< n; i++){
// print out a " " n-i times and append a # i times
// console log adds a new line by default
console.log(" ".repeat(n-i) + "#".repeat(i))
}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great.
You can make even more shorter like this