Чтобы добавить новое число в массив, используйте метод push:
push
let numbers = [1, 2, 3]; numbers.push(4); console.log(numbers); // [1, 2, 3, 4]