function Human(fname, lname) { this.fname = fname; this.lname = lname; } var first = new Human('John', 'Doe'); var second = new Human('Jim', 'Halo'); console.log("Name of first human is - " + first.fname + " " + first.lname); console.log("Name of second human is - " + second.fname + " " + second.lname);