There may be several good reasons, but I suspect one of them is that if you execute the following simple old JavaScript (via TypeScript output from the compiler):
var john = new User();
console.log("John constructed with: " + john.constructor);
You'll get
John constructed with: function User() {
this.wow = "xxx";
}
instead of <
John constructed with: function() {
this.wow = "xxx";
}
where it becomes possible to see that the "User" (identifier of the constructor function) can give a useful hint, while debugging something later, etc.
'NTN,