What command can I use to know if a string contains only numbers?
For example, I'm using prompt
:
var quantidade=prompt('Quantidade de entrada de produtos(somente números)');
I would like to check if actually in the variable quantidade
has only numbers, after all we can not trust these users is not rs.