0
What is the output if this code? var a = 1/-infinity + 5%infinity; console.log(a); Ans = 5
Please can someone explain to me how th answer is 5
2 Respuestas
+ 1
1 / Infinity is 0 and modulo operation returns the first number if it's smaller than the second one.
+ 1
Gellert thanks