Skip to content

Commit 9134ad3

Browse files
authored
Add missing comma on super.<method>()
1 parent c25b536 commit 9134ad3

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)