Skip to content

Instantly share code, notes, and snippets.

@mischah

mischah/_currentMood.md

Last active Aug 29, 2015
Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@DerZyklop DerZyklop commented Sep 2, 2014

hilarious :D

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