test if a value is a positive integer in javascript code example Example: javascript is number an integer Number.isInteger(value) //returns a Boolean