Skip to content

NPM package with function which asks the user to enter values using prompt and saves them to an array. Counts and returns the sum of the elements in an array.

slavnyj/js_npm_sunInput

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js_npm_sumInput

EN

Function asks the user to use the values using a hint and store them in an array.
Finishes entering values when the user enters a non-numeric value, an empty string, or clicks Cancel.
Counts and returns the number of elements in the array.
Zero 0 - it is considered, the value input does not stop when entering "0".

RU

Функция просит пользователя ввести значения, используя prompt и сохраняет их в массив.
Заканчивает запрашивать значения, когда пользователь введёт не числовое значение, пустую строку или нажмёт «Отмена».
Подсчитывает и возвращает сумму элементов массива.
Ноль 0 – считается числом, ввод значений при вводе «0» не останавливается.

About

NPM package with function which asks the user to enter values using prompt and saves them to an array. Counts and returns the sum of the elements in an array.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published