how to use Number.isInteger in if else code example Example: javascript is number an integer Number.isInteger(value) //returns a Boolean