var o = new Object; var n = new Number; var s = new String; var b = new Boolean; var d = new Date; var arg = function() { return arguments } (); var r = new RegExp; var f = new Function; var arr = new Array; var e = new Error; console.log([o, n, s, b, d, arg, r, f, arr, e].map(v => Object.prototype.toString.call(v)));