docs: fix typo on JS classes article

This commit is contained in:
Corbin Crutchley
2023-10-01 23:43:06 -07:00
parent 4a9c051daf
commit 9858e098bb

View File

@@ -24,7 +24,7 @@ A good question! Let's answer that and, along the way, look at:
- How to "extend" a "class"
- How to add static methods to our "class"
# Create public fields with the `contructor`
# Create public fields with the `constructor`
Let's look at a modern JavaScript class:
@@ -176,7 +176,7 @@ user.sayCatchphrase(); // "It depends"
Before we talk about function-based class extension, we need to talk about pre-ES2020 class creation once again.
See, when we convert the following code to use a `contructor`:
See, when we convert the following code to use a `constructor`:
```javascript
class Person {