/*
A class is a function of a factory that will be used to create many objects,
but no code will be duplicated in creating each object. In other words,
the code will be written only once, using that code we can create a lot of
objects again and again.
*/
//Class
class Person{
constructor(){
this.name = 'Bill Gates';
}
}
var person1 = new Person();
console.log(person1.name); //Bill Gates