Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
November 6, 2019 03:12 pm GMT

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:    Share on Facebook
View Full Article

CSS Tricks

A Web Design Community curated by Chris Coyier

More About this Source Visit CSS Tricks