Encounter a front-end interview question: do not use cycle printing 500 asterisks

do not print 500 asterisks in a loop

Don"t make jokes like manual


console.log(new Array(500).fill('*'))

console.log(new Array(500).fill('*').toString())



function printstart(i){
  console.log('*')
  if(i<500){
    iPP
    printstart(i)
    
  }
}

printstart(0)

console.log(new Array(500).fill('*').toString().replace(/\,/g," "))

console.log(new Array(500).join('*'))
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b35b3d-4d652.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b35b3d-4d652.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?