YouTip LogoYouTip

Jsref Positive Infinity

# JavaScript POSITIVE_INFINITY Property [![Image 8: Number Object Reference](#) JavaScript Number Object](#) ## Example Return positive infinity: Number.POSITIVE_INFINITY; Output: Infinity [Try it yourself Β»](#) * * * ## Definition and Usage The POSITIVE_INFINITY property value represents positive infinity. The POSITIVE_INFINITY property represents a value greater than Number.MAX_VALUE. * * * ## Using Number.POSITIVE_INFINITY POSITIVE_INFINITY is a static property of the JavaScript Number object. The calling method is: Number.POSITIVE_INFINITY. Calling this property with a custom Number object x (x.POSITIVE_INFINITY) will return undefined: ## Example var x = 100; x.NEGATIVE_INFINITY; x output: undefined [Try it yourself Β»](#) * * * ## Browser Support ![Image 9: Internet Explorer](#)![Image 10: Firefox](#)![Image 11: Opera](#)![Image 12: Google Chrome](#)![Image 13: Safari](#) All major browsers support the POSITIVE_INFINITY property. * * * ## Syntax Number.POSITIVE_INFINITY; ## Technical Details | Return Value: | The numeric value: Infinity | | :--- | | JavaScript Version: | 1.1 | * * * ## More Examples ## Example Create a positive infinity: var n=(Number.MAX_VALUE)*2; _n_ output: Infinity [Try it yourself Β»](#) * * JavaScript Number Object](#)
← Jsref SplitJsref Number Nan β†’