@@ -270,7 +270,7 @@ Note: Accessors require you to set the compiler to output ECMAScript 5 or higher
270270
271271# Static Properties
272272
273- Up to this point, we've only talked about the * instance* members of the class, those that show up on the object when its instantiated.
273+ Up to this point, we've only talked about the * instance* members of the class, those that show up on the object when it's instantiated.
274274We can also create * static* members of a class, those that are visible on the class itself rather than on the instances.
275275In this example, we use ` static ` on the origin, as it's a general value for all grids.
276276Each instance accesses this value through prepending the name of the class.
@@ -437,7 +437,7 @@ Next, we then use the class directly.
437437Here we create a new variable called ` greeterMaker ` .
438438This variable will hold the class itself, or said another way its constructor function.
439439Here we use ` typeof Greeter ` , that is "give me the type of the ` Greeter ` class itself" rather than the instance type.
440- Or, more precisely, "give me the type of the symbol called ` Greeter ` ", which is the type of the constructor function.
440+ Or, more precisely, "give me the type of the symbol called ` Greeter ` ," which is the type of the constructor function.
441441This type will contain all of the static members of Greeter along with the constructor that creates instances of the ` Greeter ` class.
442442We show this by using ` new ` on ` greeterMaker ` , creating new instances of ` Greeter ` and invoking them as before.
443443
0 commit comments