Skip to content

Instantly share code, notes, and snippets.

@conanak99

conanak99/sampleFor.js Secret

Created Jan 13, 2016
Embed
What would you like to do?
var person = {
firstName: 'Hoang',
lastName: 'Pham',
showName: function() {
console.log(this.firstName + ' ' + this.lastName);
}
};
for(var prop in person) {
console.log(prop); // firstName, lastName, showName
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.