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 :: get number from string using jquery 
Javascript :: vue watch object member 
Javascript :: fibonacci sums javascript 
Javascript :: how to convert milliseconds to time in javascript 
Javascript :: compose es6 
Javascript :: jquery see if checkbox is checked 
Javascript :: multiple value selected in select2 
Javascript :: node cron every 10 minutes 
Javascript :: split in mongodb 
Javascript :: confetti for javascript 
Javascript :: joi validation custom message in node 
Javascript :: convert array of string to array of objects javascript 
Javascript :: replace all occurrences of a string in javascript 
Javascript :: toaster cdn 
Javascript :: datatable 
Javascript :: plotly js y axis range 
Javascript :: react-router react-router-dom 
Javascript :: javascript try 
Javascript :: es6 map usin index 
Javascript :: react parameter value from query string 
Javascript :: iseet jquery 
Javascript :: firebase update users 
Javascript :: rect p5js 
Javascript :: search substring in string javascript 
Javascript :: postmessage from iframe to parent 
Javascript :: load base64 image in tab javascript 
Javascript :: import typography react 
Javascript :: fetch javascript 
Javascript :: youtube video regex 
Javascript :: json array to string in postgresql 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =