There is no input value; the Date object is created with no argument



The result is date and time the Date object was build (now).
Click the Display button again, to update the time.

A copy of the JavaScript functions in the head element:

// sample-4-default-object.js
// This sample shows default date

function display()
  {
  var output1 = document.getElementById("output1");
  var output2 = document.getElementById("output2");
  // create a Date object using no parameter - default value argument to the constructor.
  var date_object   = new Date();
  output1.value = date_object.getTime();
  output2.value = date_object.toLocaleString();
  }