Skip to content

Commit 25b5048

Browse files
committed
update inheritance
1 parent 0894931 commit 25b5048

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

JS/JS-en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ If call `myDate.test()` with compiled code, you’ll be surprised to see that th
289289
290290
Because there are restrictions on the low-level of JS, if the instance isn’t constructed by `Date` , it can’t call the function in `Date`, which also explains on the side: `Class` inheritance in ES6 is different from the general inheritance in ES5 syntax.
291291
292-
Since the low-level of JS limits that the instance must be constructed by `Date` , we can change the way we think of implementing inheritance.
292+
Since the low-level of JS limits that the instance must be constructed by `Date` , we can try another way to implement inheritance.
293293
294294
```js
295295
function MyData() {

0 commit comments

Comments
 (0)