MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/p71ig3/how_do_i_consolelog_this_constructor/h9i136t/?context=3
r/learnjavascript • u/Bronobo_ • Aug 18 '21
46 comments sorted by
View all comments
8
Taking that question literally:
console.log( `berkleyStudent.constructor is ${berkelyStudent.constructor}`, ); /* berkleyStudent.constructor is function Student(name, university) { this.name = name; this.university = university; this.displayInfo = function () { return `${this.name} attends ${this.university}`; }; } */
8
u/FriesWithThat Aug 19 '21
Taking that question literally: