Created
January 22, 2019 06:38
-
-
Save jaamaalxyz/aa9f44df5f60dcf0936cf3b5ae59ad05 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const person = { | |
name: 'Jamal Uddin', | |
actions: ['bike', 'hike', 'ski', 'surf'], | |
printActions() { | |
return this.actions.map(action => `${this.name} likes to ${action}`) | |
} | |
} | |
console.log(person.printActions()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment