You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* Use Object() constructor to create a string, number, array, function, boolean, and regex object. */
// logs below confirm object creation
console.log(new Object('foo'));
console.log(new Object(1));
console.log(new Object([]));
console.log(new Object(function () { }));
console.log(new Object(true));
console.log(new Object(/\bt[a-z]+\b/));
/* Creating a string, number, array, function, boolean, and regex object instance via the Object() constructor is really never done. I am just demonstrating that it can be done */