[Function Constructor] #js
var Mark = {
name: 'Mark',
yearOfBirth: 1984,
job: 'developer'
};
var Person = function (name, yearOfBirth, job) {
this.personName = name;
this.yearOfBirth = yearOfBirth;
this.job = job;
};
var christos = new Person('Christos', 1984, 'Web Developer');
/*
The Object.prototype is a property of the Object constructor.
The different with normal object is when call the object we dont call that function on creation of object.
but function exist on object prototype property and is available to call it.
*/
Person.prototype.lastName = 'Ploutarchou';