This code is missing features and it doesn't even have an element name parameter.Anyways the following code I wrote below solved 99% of my problems:function person(firstname,lastname,age,eyecolor, cycles){ this.firstname=firstname this.lastname=lastname this.age=age this.eyecolor=eyecolor this.cycles = cycles; //this.newlastname=newlastname function load_person(firstname,lastname,age,eyecolor, cycles) { document.write(firstname); cycles--; var firstnamez=firstname var lastnamez=lastname var agez=age var eyecolorz=eyecolor var cyclesz = cycles; if(cycles <= 0) { return 0; } //var load_p = "load_person(firstnamez, lastnamez, agez, eyecolorz, cyclesz)"; load_person(firstnamez, lastnamez, agez, eyecolorz, cyclesz); //setTimeout(load_p, 500); return 0; } load_person(this.firstname, this.lastname, this.age, this.eyecolor, this.cycles); }new person("John","Doe",50,"blue", 3)new person("Sally","Rally",48,"green", 3)
The only issue is that setTimeout will not recognize the load_person method within the object.Once I fix this, I'll be able to solve all of my coding problems by reapplying these techniques.