21. Custom Constructors


#1

Hi guys,

In the 3 variables listed in the code below, it contains the code "new", why is that there and what is it for?
Thanks

function Person(name,age) {
  this.name = name;
  this.age = age;
}

var bob = new Person("Bob Smith", 30);
var susan = new Person("Susan Jordan", 25);
var george = new Person("George Washington", 275)


#2

Try reading this.