Create an array with same element repeated multiple times September 13, 2022 by Tarik In ES6 using Array fill() method console.log( Array(5).fill(2) ) //=> [2, 2, 2, 2, 2]