Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

infinity javascript

const maxNumber = Math.pow(10, 1000); // max positive number

if (maxNumber === Infinity) {
  console.log('Let's call it Infinity!');
}

console.log(1 / maxNumber);
Comment

JavaScript Infinity

const a = 2 / 0;
console.log(a); // Infinity

const a = -2 / 0;
console.log(a); // -Infinity
Comment

PREVIOUS NEXT
Code Example
Javascript :: laravel react 
Javascript :: Check If Something Is An Array or Not 
Javascript :: vue cdn 
Javascript :: clear all intervals js 
Javascript :: javascript sort numbers descending 
Javascript :: js addeventlistener 
Javascript :: convert date to timestamp javascript 
Javascript :: firebase for vue project 
Javascript :: onclick toggle class react 
Javascript :: js get element by X Y 
Javascript :: bootstrap disable button after click 
Javascript :: exponent in javascript 
Javascript :: react native cross out letter 
Javascript :: Regular Expression for Detect Iranian Mobile Phone Numbers | IR mobile number Regex Pattern 
Javascript :: how to select div js 
Javascript :: return symmetric difference of the array javascript 
Javascript :: gsap pin scrolltrigger 
Javascript :: send a message using discord.js 
Javascript :: jquery navigation 
Javascript :: how to loop an object in javascript 
Javascript :: copy one array to another javascript 
Javascript :: react private route 
Javascript :: javascript play pause button 
Javascript :: all input value empty jquery 
Javascript :: Sort big numbers from an array in javascript 
Javascript :: viewmodelprovider example 
Javascript :: how to hide react navigation header in react native 
Javascript :: javascript replace last occurrence of a letter 
Javascript :: jquery show password 
Javascript :: react inject component into another component 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =