const array = new Array(3);
const filled = array.fill(0);
const mapped = array.map(() => 1);
console.log(filled[0], mapped[0]);
WebDEV #test #Frontend
Выберите правильный вариант 👇🏼
WE WebDEV @webb_dev · 8.3K subscribers const array = new Array(3);
const filled = array.fill(0);
const mapped = array.map(() => 1);
console.log(filled[0], mapped[0]);