Number object constants

Number.MAX_VALUE   The largest representable number
Number.MIN_VALUE   The smallest representable number
Number.NaN   Not a number
Number.POSITIVE_INFINITY   positive infinity
Number.NEGATIVE_INFINITY   negative infinity

A copy of the JavaScript functions:

// sample-8-number-constants.js
// This sample shows some Number constants

// display the input date in several formats
function display()
  {
  var output1 = document.getElementById("output1");
  var output2 = document.getElementById("output2");
  var output3 = document.getElementById("output3");
  var output4 = document.getElementById("output4");
  var output5 = document.getElementById("output5");
  // Math object constants
  output1.value = Number.MAX_VALUE;
  output2.value = Number.MIN_VALUE;
  output3.value = Number.NaN;
  output4.value = Number.POSITIVE_INFINITY;
  output5.value = Number.NEGATIVE_INFINITY;
  }