The other day, I decided to print out the global window
object and was surprised to see that the first value was Infinity
. I've searched for an explanation but haven't found a satisfactory answer. Can anyone shed some light on why this is included in the global window object?
According to MDN, infinity is always part of the global window
, but how and why would someone actually use it? This question may seem broad, but I'm hoping to receive a clear explanation on how and when Infinity
should be utilized.
Reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity