Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let num = 3;
- let counter = 1;
- while (counter <= num) {
- let stars = 0;
- let starline = '';
- while (true) {
- if (stars === counter) {
- break;
- }
- stars++;
- starline = starline + '*';
- }
- console.log(starline);
- counter++;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement