Ledger Nano X - The secure hardware wallet
SHARE
TWEET

js task

a guest Feb 23rd, 2020 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let number = 5
  2.  
  3. for (let i = 0; i < number + 1; i++){
  4.     a = '-'.repeat(number - i);
  5.     if (i < number / 2){
  6.         b = '*'.repeat(number + i * 2)
  7.         c = '-'.repeat(number - i * 2)
  8.         d = '*'.repeat(number + i * 2)
  9.         e = f = ''
  10.     }else{
  11.         b = '*'.repeat(number)
  12.         c = '-'.repeat(i * 2 - number)
  13.         d = '*'.repeat(3 * number - i * 2)
  14.         e = '-'.repeat(i * 2 - number)
  15.         f = '*'.repeat(number)
  16.     }
  17.     g = '-'.repeat(number - i)
  18.     console.log((a + b + c + d + e + f + g).repeat(2))
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top