Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const person = {
- firstName: "Ryan",
- };
- person.lastName = "Gosling"
- person.fullName = function() {
- return this.firstName + " " + this.lastName;
- }
- console.log(person.fullName()) // Ryan Gosling
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement