From 9134ad3e1b83b90d53e61f794f0145ed828c3b66 Mon Sep 17 00:00:00 2001 From: Stratos Neiros Date: Wed, 19 Jul 2023 15:39:05 +0300 Subject: [PATCH] Add missing comma on super.() --- learn/javascript/classes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/learn/javascript/classes.md b/learn/javascript/classes.md index ddd2a2b..cd945e3 100644 --- a/learn/javascript/classes.md +++ b/learn/javascript/classes.md @@ -252,7 +252,7 @@ Classes can extend from other classes. The extended class will receive all the p and it can define new methods and properties. The extended class cannot access private state or private methods from the parent class. If an extended class overrides the class constructor, it must call the original constructor by using `super()`. If the extended class overrides a method that exists on the parent class, it can optionally call -`super()`. +`super.()`. ```js class Point {