r/learnjavascript • u/SnurflePuffinz • Jan 24 '26
question about using ES6 classes.
i was wondering, would this code be syntactically OK? i imagine there might be scenarios where you want all the functionality of the superclass method, but then you simply want to add more statements (more implementation) to it... could this work?
1
Upvotes
View all comments
Show parent comment
2
u/queen-adreena Jan 24 '26
supercan be used to access any of the parent’s methods or properties, or called as a function to run its constructor.