You are viewing a single comment's thread. Return to all comments →
Javacript Clean and Sexy using repeat method of strings
// Complete the staircase function below. function staircase(n) { for (let i = 1; i <= n; i++){ console.log(' '.repeat(n - i) + '#'.repeat(i)); } }
Staircase
You are viewing a single comment's thread. Return to all comments →
Javacript Clean and Sexy using repeat method of strings