Суть: запись цифр в массив, пока не нажму кнопку "отмена " в prompt
while(userInput !== null) - не работает, как сделать по другому?
let numbers = [];
do{
    const userInput = prompt('Введите числа!');
    numbers.push(userInput);
}while(userInput !== null)