Constructors
Jump to navigation
Jump to search
Function Constructor
var Person = function(name, yearOfBirth, job){ this.name = name; this.yearOfBirth = yearOfBirth; this.job = job; } var john = new Person('john', 1967, 'teacher');