Introduction to Object-Oriented Programming in JavaScript

Codealong with Chat

In the server-side lesson we wrote code to

In this lesson we will introduce Object-Oriented concepts and illustrate them with Test-Guided exercises to come out with a

OO Concept: class

A class defines a type.

An instance is an individual.

For example, there are many houses, but my house is yellow.

In JavaScript, the keyword class

OO Concept: new

OO Concept: this

OO Concept: constructor

OO Concept: static

OO Concept: encapsulation