Skip to content

Instantly share code, notes, and snippets.

@mischah
Last active August 29, 2015 13:56
Show Gist options
  • Save mischah/9218057 to your computer and use it in GitHub Desktop.
Save mischah/9218057 to your computer and use it in GitHub Desktop.
function Employer(company, url, entryDate) {
this.company = company;
this.url = url;
this.entryDate = entryDate;
this.getInfo = function () {
var date = this.entryDate.toLocaleDateString();
return 'Michael is happy to start at ' + this.company + ' (' + this. url + ') on ' + date;
};
}
var micromata = new Employer('Micromata GmbH', 'http://www.micromata.de', new Date(2014,03,01));
console.info(micromata.getInfo());
@DerZyklop
Copy link

hilarious :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment