-
-
Save conanak99/b6d748409b8e29c8f43d 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 person = { | |
firstName: 'Hoang', | |
lastName: 'Pham', | |
showName: function() { | |
console.log(this.firstName + ' ' + this.lastName); | |
} | |
}; | |
delete person.lastName; // Xóa trường lastName | |
person.lName = 'Just adding'; // Thêm trường lName | |
console.log(person.lastName); // undefined | |
console.log(person.lName); // Just adding |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment