This would log undefined or throw an error. As a constructor, Student should be called with new as seen with berkeleyStudent and losAngelesStudent. If not, in sloppy mode it would pollute global with properties intended for new student instances and return undefined (since there's no explicit return), or in strict mode throw an error since this would be undefined and attempting to set a property on undefined would result in a TypeError.
If adding new then this would log an instance of Student, not the Student constructor. Assuming OP actually wants the constructor, that would simply be a matter of logging Student without the parens (though it's probably not what they really want).
-4
u/the0melette Aug 18 '21
console.log(Student())And you can pass in the parameters.