Only tested on Chrome:
function FooBar() {
}
var foobar = new FooBar();
console.log(foobar.constructor.name); // Prints 'FooBar'
Only tested on Chrome:
function FooBar() {
}
var foobar = new FooBar();
console.log(foobar.constructor.name); // Prints 'FooBar'