Skip to content

Instantly share code, notes, and snippets.

View michacom's full-sized avatar

Michael michacom

  • Salesforce.com
  • Jerusalem
View GitHub Profile
person = {
firstName: 'Moshe',
lastName: 'Cohen',
moods: ['happy', 'angry', 'sad'],
giveMeName: function () {
this.moods.forEach((mood) => {
console.log(this.firstName + " " + this.lastName + ' Can be ' + mood);
});
}
}