What is negative infinity?

 Posted by Ddd on 2/16/2011 | Category: JavaScript Interview questions | Views: 2587 | Points: 40
Answer:

-It’s a number in JavaScript, derived by dividing negative number by zero.

Code snippet
<script>

var a=-45;
alert(a/0);
</script>


output:
-Infinity


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response