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 :: main js pass data to vue 
Javascript :: react using object as prop 
Javascript :: sort javascript 
Javascript :: javascript comparison 
Javascript :: map.set javascript 
Javascript :: javascript list comprehension 
Javascript :: js arrow vs normal function 
Javascript :: JavaScript Access Elements of an Array 
Javascript :: var = {} js 
Javascript :: redwood js 
Javascript :: Array of indexOf 
Javascript :: javascript join 2 variables into string 
Javascript :: vue js 
Javascript :: redux form 
Javascript :: emacs 
Javascript :: Angular 4 "Property does not exist on type component" 
Javascript :: convert all styles to inline style javascript 
Javascript :: javascript test throw error 
Javascript :: rxjs operators 
Javascript :: get week number of month from date moment 
Javascript :: javascript if else 
Javascript :: js timer 
Javascript :: express middleware status code always 200 
Javascript :: list of javascript cheat sheet 
Javascript :: google script getactivescell 
Javascript :: function find_max(nums) { 2 let max_num = Number.NEGATIVE_INFINITY; // smaller than all other numbers for (let num of nums) { if (num max_num) { // (Fill in the missing line here) } } return max_num; 
Javascript :: convert css box shadow to react native 
Javascript :: angular append to FormControl errors 
Javascript :: Quentin Michael Allums age 
Javascript :: dropzone not working when input is clicked 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =