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