JavaScript Number isInteger() method

The JavaScript number isInteger() method is used to find whether a number is an integer number or not.
Syntax:

Number.isInteger(n) 

Parameters
n: It represents the number on which integer check have to be inform.

Returns
It returns true if the specified number is a integer number otherwise returns false.

Example

<!DOCTYPE html>
<html>
<body>
<script>  
var n= 12.334;    
document.writeln(Number.isInteger(n));  
</script>  
</body>
</html>

Output

false
Please Share