slides through modules

This commit is contained in:
Jeremy Likness
2020-01-29 10:26:00 -08:00
parent 2086a20e3c
commit e19a4d83bd
7 changed files with 91 additions and 2 deletions

View File

@@ -0,0 +1,19 @@
<title>Looking Back...</title>
<h1>Looking Back...</h1>
<pre>
var shape = (function () {
function shape(sides) {
this._sides = sides;
}
Object.defineProperty(shape.prototype, "sides", {
get: function () { return this._sides; },
enumerable: true,
configurable: true
});
shape.makeShape = function (sides) {
return new shape(sides);
};
return shape;
}());
</pre>
<next-slide>173-es5-extends</next-slide>