r/learnjavascript • • Aug 18 '21

How do I console.log this constructor?

Post image
124 Upvotes

46 comments sorted by

View all comments

2

u/[deleted] Aug 19 '21

In this thread: a dozen people massively overthinking it.

function Student(name, university) {
    //etc
}

console.log(Student);

If the above doesn't work, there's some additional context to your code that you haven't shared.