- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest_min.js
More file actions
Latest commit
1 lines (1 loc) · 464 Bytes
/
Copy pathtest_min.js
File metadata and controls
1 lines (1 loc) · 464 Bytes
1
functionAddress(){this.address=newObject}Address.prototype={set:function(firstname,lastname,country,zip,city){this.address.firstname=firstname;this.address.lastname=lastname;this.address.country=country;this.address.zip=zip;this.address.city=city},get:function(){returnthis.address},print:function(){console.log("Address: "+JSON.stringify(this.address,0,1))}};varMyAddress=newAddress;MyAddress.set("Rainer","Ross","DE","86916","Kaufering");MyAddress.print();