dabidabidesh

squareOfStars

Sep 16th, 2020
353
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()
RAW Paste Data