Edit in JSFiddle

var d = new Date(); 
var o = {}; 
var a = []; 

Object.prototype.toString.call(d); // [object Date] 
Object.prototype.toString.call(o); // [object Object]
Object.prototype.toString.call(a); // [object Array]

// The Date  Object & Array parts of the string
// are from the [[Class]] internal property