3 ms·
Because strings aren't numbers and Infinity is a number
by TheCoelacanth 5y ago
Because strings aren't numbers and Infinity is a number
- JasonCannon 5y agoStrings are the safest way to hold big numbers in JavaScript due to how JavaScript represents numbers. Also no, infinity is not a number. It's a concept.
- boomlinde 5y agoNumbers is a concept. For some purposes it is useful to consider a number that is infinite, which is why concepts like the extended real number line have been invented.