Tell me how to implement the next idea. There is an input to which, separated by commas, the numbers are entered (the age to be written in some variable for further work) and the label (for example) displays: "Number of people: ..".
For example: Enter the age: 24, 22, 10 (24 years, 22 years, 10 years). And displayed -> Number of people: 3
input.value.split(',').lengthby comma and count:input.value.split(',').length. With an empty entry, however, will display1- vp_arth