filmov
tv
JavaScript for Beginners #48 Prototype Property

Показать описание
The prototype property allows us to add properties and methods to an object. We will use this to update our constructor functions and make them more efficient.
0:00 Introduction
0:41 Setting up a constructor function
1:30 Creating a new instance
2:23 Creating a fullName method
3:05 Creating a showMessage method
4:58 Creating new instances
6:10 Why is our current setup inefficient
7:02 Making our code better with the prototype property
9:36 Second example
JavaScript Playlist:
MDN Object Prototypes:
MDN Constructor:
W3 Schools Constructors:
MDN Objects:
NodeJS:
VS Code:
0:00 Introduction
0:41 Setting up a constructor function
1:30 Creating a new instance
2:23 Creating a fullName method
3:05 Creating a showMessage method
4:58 Creating new instances
6:10 Why is our current setup inefficient
7:02 Making our code better with the prototype property
9:36 Second example
JavaScript Playlist:
MDN Object Prototypes:
MDN Constructor:
W3 Schools Constructors:
MDN Objects:
NodeJS:
VS Code: