fork(2) download
  1. const me = new Date('1990-07-05');
  2. const you = new Date('1993-01-05');
  3. const avg = new Date((me.getTime() + you.getTime()) / 2);
  4.  
  5. console.log(avg.toDateString());
Success #stdin #stdout 0.06s 122240KB
stdin
Standard input is empty
stdout
Sat Oct 05 1991