Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript negative infinity

// Using this will gives lowest possible starting point.
// It is useful when initiating a variable that will be compared against negative numbers.
Number.NEGATIVE_INFINITY // Or,
-INFINITY

// The opposite is INFINITY. The largest possible starting point.
Number.POSITIVE_INFINITE // Or,
INFINITY
Comment

JavaScript NEGATIVE_INFINITY

let x = Number.NEGATIVE_INFINITY;
Comment

JavaScript POSITIVE_INFINITY

let x = Number.POSITIVE_INFINITY;
Comment

PREVIOUS NEXT
Code Example
Javascript :: ran ctrl c and npm server is still running 
Javascript :: how to use platform.select 
Javascript :: get methods on an js object 
Javascript :: repeat a function javascript 
Javascript :: js hoisting 
Javascript :: node js sleep between axios 
Javascript :: format date in javascript 
Javascript :: js UTC to local timezone 
Javascript :: make button inside datatable 
Javascript :: javascript array filter duplicates in react 
Javascript :: javascript onclick append a new row to table 
Javascript :: jquery: get selected option of the drop down list 
Javascript :: is digit javascript 
Javascript :: jquery selector id ends with 
Javascript :: alert 
Javascript :: js window onload 
Javascript :: c# razor for loop javascript 
Javascript :: moment diff 
Javascript :: gzip compression angular universal 
Javascript :: find highest number in array javascript 
Javascript :: fetch from vscode 
Javascript :: trigger a function inside child from parent vue 
Javascript :: us postal code regex 
Javascript :: max js 
Javascript :: javascript event listener 
Javascript :: how to generate a new page component in angular 
Javascript :: average of numbers 
Javascript :: app bar in react native 
Javascript :: patterns in javascript 
Javascript :: how to allow implicit any in .d.ts 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =