fungsi konstruktor javascript dan membuat objek darinya

// Constructor function for Person objects

function Person(first, last, age, eye) {
  this.firstName = first;
  this.lastName = last;
  this.age = age;
  this.eyeColor = eye;
}

// Create a Person object
const myFather = new Person("John", "Doe", 50, "blue");
Confused Caiman