An Interest In:
Web News this Week
- April 3, 2024
- April 2, 2024
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
November 6, 2019 03:12 pm GMT
Original Link: https://css-tricks.com/what-is-super-in-javascript/
What is super() in JavaScript?
What's happening when you see some JavaScript that calls super()?
.In a child class, you use super()
to call its parents constructor and super.<methodName>
to access its parents methods. This article will assume at least a little familiarity with the concepts of constructors and child and parent classes. If that's totally new, you may want to start with Mozilla's article on Object-oriented JavaScript for beginners.
Super isn't unique to Javascript many programming languages, including Java and Python, … Read article
The post What is super() in JavaScript? appeared first on CSS-Tricks.
Original Link: https://css-tricks.com/what-is-super-in-javascript/
Share this article:
Tweet
View Full Article