How is the constructor defined in JavaScript class compared to how the constructor is defined in a PHP class? code example
Example: javascript constructor object
function Person(first, last, age, eye) {
this.firstName = first;
this.lastName = last;
this.age = age;
this.eyeColor = eye;
}