javascript return set duplicates code example Example: javascript create array with repeated values Array(5).fill(2) //=> [2, 2, 2, 2, 2]