Examples for generating Infinite and NaN (not a number)



examples/js/nan.js
console.log(2/0);       // Infinity
console.log(-2/0);      // -Infinity
console.log(2/-0);      // -Infinity
console.log(2/0 - 2/0); // NaN