+ 1

Infinity

const power100 = (num) => num**100; power100(10000) // Infinity Why we get infinity?

11th Sep 2019, 7:09 PM
Vardan Tepoyan
Vardan Tepoyan - avatar
2 Answers
+ 9
It's Because JavaScript is 32 bit while other Languages is 64 bit Meaning JavaScript cannot handle large numbers while other Languages can handle them like python
11th Sep 2019, 7:49 PM
Qudusayo
Qudusayo - avatar
+ 1
Because it is too big.
11th Sep 2019, 7:43 PM
Airree
Airree - avatar