From the course: JavaScript: Classes
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Defining a class - JavaScript Tutorial
From the course: JavaScript: Classes
Defining a class
- [Lecturer] Now that we have some understanding of how to define a class, let's actually do this. We'll first create a base project that we can use to play with throughout this course. So let's get to it. So the first thing I'm going to do is create a folder outside here. I'm going to put it on the desktop and I'm going to right click, create a new folder, and I'm going to call this classes and then I'm going to drop it directly in VS Code. Feel free to use any editors you want but I find VS Code to be very friendly for the types of projects that we're doing, especially in this course because we're going to use an extension that we're going to get right away that's called Live Server. And it's going to allow us to always see the results of what we're doing. This one here, so actually install this one. Once it is install, all you're going to have to do is click go live when we have our project set up. So let's go ahead and…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
Introduction to classes1m 53s
-
(Locked)
Defining a class8m 32s
-
(Locked)
Differences between functions and classes1m 42s
-
(Locked)
Hoisting explained with classes2m 27s
-
(Locked)
Strict mode with classes explained1m 25s
-
(Locked)
What are static methods and usage?4m 11s
-
(Locked)
Prototype methods explained and usage2m 25s
-
-
-
-