Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

isFinite(): returns true if the number is not Infinity or -Infinity

let finite = isFinite(12345);
let infinite = isFinite(1.9e308);

console.log(finite);    // true
console.log(infinite);  // false
 
PREVIOUS NEXT
Tagged: #returns #true #number #Infinity
ADD COMMENT
Topic
Name
7+4 =