What is negative infinity?


Negative Infinity is a number in JavaScript which can be derived by dividing the negative number by zero. For example:

var num=-5;  
function display()  
{  
  document.writeln(num/0);  
}  
display();  
//expected output: -Infinity  

Leave a Reply

Your email address will not be published. Required fields are marked *