...

/

JavaScript Classes and Object Creation

JavaScript Classes and Object Creation

In this lesson, we briefly look at object-oriented programming concepts in JavaScript like classes and objects.

Background

Classes are relatively new to JavaScript as previously, there was only JavaScript’s prototype chain which could be used for inheritance too. JavaScript classes build up on top of the prototypical inheritance giving the whole thing a more straightforward representation. Classes in JavaScript are syntactical sugar over prototype chains. You don’t need to understand what a prototype chain or prototypical inheritance is for ...

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy