Advertisement
dabidabidesh

squareOfStars

Sep 16th, 2020
1,138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ///home/dabidesh/js/js-advanced/03 SYNTAX, FUNCTIONS AND STATEMENTS/06. Square of Stars.js
  2. squareOfStars = (stars = 5) => {
  3.   'use-strict'
  4.  
  5.   for (let i = 0; i < stars; i++)
  6.     console.log('* '.repeat(stars))
  7. }
  8.  
  9. squareOfStars()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement