I would like to know how I can get the name of my custom object in javascript?
var calendarDay = function (date) {
//someCode
}
var test = new calendarDay(new Date());
console.log(typeof test); //Object
However, if I do this in Chrome:
console.log(test);
Chrome shows the exact name of my customObject. Can I do this in javascript?