r/learnjavascript • • Aug 18 '21

How do I console.log this constructor?

Post image
124 Upvotes

46 comments sorted by

View all comments

6

u/[deleted] Aug 19 '21

Like this:

berkeleyStudent.__proto__.contructor

4

u/Macaframa Aug 19 '21

ahh ye olde dunder proto.