Skip to content

Instantly share code, notes, and snippets.

View conanak99's full-sized avatar

Phạm Huy Hoàng conanak99

View GitHub Profile
@conanak99
conanak99 / 0_reuse_code.js
Created January 7, 2016 18:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
var person = {
firstName: 'Hoang',
lastName: 'Pham',
showName: function() {
console.log(this.firstName + ' ' + this.lastName);
}
};
//Ở đây this sẽ là object person
person.showName(); //Hoang Pham.