fork download
  1. var d1 = new Date(), d2 = new Date(d1)
  2. print(d1)
  3. print(d2)
  4. print(d1 == d2)
  5. print(d1.equals)
Success #stdin #stdout 0.02s 4984KB
stdin
Standard input is empty
stdout
Fri Aug 10 2012 07:37:55 GMT+0000
Fri Aug 10 2012 07:37:55 GMT+0000
false
undefined