how do I make an array that contains strings of numbers with x length in javascript?

my wrong example:

var prefix = '1234';
for (var x = 4; x<= 10; x++) 
  if (prefix.length !== x) {
  prefix.concat('0')
  }

what im trying to get: [‘1234’, ‘12340’, ‘123400’, ‘1234000’, ‘1234000’, ‘123400000’, ‘1234000000’]

108 thoughts on “how do I make an array that contains strings of numbers with x length in javascript?”