how to make a function only take in positive numbers js code example Example: html input integer and positive <input type="number" min="0" step="1" />