To kick things off, we're going to create a simple class for a person. This means that we're making a set of data and a set of methods that are useful to manipulate Person. Now in order to get started, we are going to use the class keyword followed by the class name, Person. We're going to use an uppercase first letter for our class definition since we are going to be creating new instances of them with the new keyword. You do not need to use an uppercase P; this is just common convention across JavaScript. If a function is meant to be used with new, like new Person, new Object, or anything else, it should have an uppercase first letter; this is just a styling convention.
Now right after our name we can simply open and close some curly braces and there we have it:
class Person {
}
We have a brand new class and we can even make an instance of it. We can make a variable called me and set it equal to new Person calling it as a function just like this:
class Person {
}
var me = new Person();
Now we have a new instance of the class and we can do whatever we like with it. Currently, it doesn't do anything but we do have an instance created.