In the following code I do not understand why the last console.log does not return 'kj18', although the pro-type has been changed before that line.
Could you please provide me an explanation?
var studentId = 'ab73';
function Student() {
this.studentId = 'b0e1';
}
console.clear()
console.log(new Student().studentId);
Student.prototype.studentId = 'kj18'
Student.prototype.classId = '5e'
console.log(new Student().classId)
console.log(new Student().studentId) // why is not kj18