Skip to content

Commit ee9d63f

Browse files
authored
Merge pull request #100 from nstratos/patch-1
Add missing comma on super.<method>()
2 parents c25b536 + 9134ad3 commit ee9d63f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

learn/javascript/classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ Classes can extend from other classes. The extended class will receive all the p
252252
and it can define new methods and properties. The extended class cannot access private state or private methods from the
253253
parent class. If an extended class overrides the class constructor, it must call the original constructor by using
254254
`super()`. If the extended class overrides a method that exists on the parent class, it can optionally call
255-
`super<method>()`.
255+
`super.<method>()`.
256256

257257
```js
258258
class Point {

0 commit comments

Comments
 (0)