Advertisement
dhshin

practice_6

Jun 26th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let n = 5;
  2. for (let i = 0; i < n; i++) {
  3.     let str = '';
  4.     for (let j = 0; j <= i; j++) {
  5.         str += '*';
  6.     }
  7.     console.log(str);
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement