Slide 29
Slide 29 text
Fix typescript constructor parameter properties
29
function Employee(name) {
_classCallCheck(this, Employee);
return _possibleConstructorReturn(this, _getPrototypeOf(Employee).call(this));
}
function Employee(name) {
var _this;
_classCallCheck(this, Employee);
_this = _possibleConstructorReturn(this, _getPrototypeOf(Employee).call(this));
_this.name = name;
return _this;
}