Skip to content

ES2015 Class Syntax Overview

Arghun-dev edited this page Aug 10, 2021 · 1 revision

Objectives

  1. Explain what a class is.
  2. Understand how JavaScript implements the idea of classes.
  3. Define terms like abstraction, encapsulation and polymorphism.
  4. Use ES2015 classes to implement data structures

What is a class?

A blueprint for creating objects with pre-defined properties and methods. => So, we'll learn how to make a singly linked lists or doubly linked lists. We define a pattern for a doubly linked list.

We have a pattern for an array and arrays come with a bunch of methods and things that they can do.

Why we need classes?

We're going to implement data structures as classes!

Clone this wiki locally