Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to cheack if a number is an integer or float in javascript

console.log(Number.isInteger(123)); // returns true
console.log(Number.isInteger(123.44)); // returns false
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #cheack #number #integer #float #javascript
ADD COMMENT
Topic
Name
5+9 =