Contact: aviboots(AT)netvision.net.il
40,756 questions
53,124 answers
573 users
const array = [1, 5, 7, 2, 1, 12, 6, 4]; array.fill(9); console.log(array); /* run: [9, 9, 9, 9, 9, 9, 9, 9] */