Created
August 2, 2016 17:31
-
-
Save sukhmeet2390/572a3ea38d46c5607a32b4ed74fca0bc 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
var player = { | |
name : 'Dhoni', | |
tasks : ['batsman', 'wicket-keeper','fielder'], | |
printTasks: function(){ | |
this.tasks.forEach((task)=>{ | |
console.log(this.name +' is a ' + task); | |
}); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment