Object Constructor

Saranya Boopathi
Posted by Saranya Boopathi under JavaScript category on | Points: 40 | Views : 986
Object Constructor

function person(fname,lname,age,eyecolor)
{
this.fname=fname;
this.lname=lname;
this.Place=place;
this.Job=Job;
}


"this" is: the instance of the object at hand.

Comments or Responses

Login to post response