Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JavaScript Object Methods

const person = {
  firstName: "John",
  lastName: "Doe",
  id: 5566,
  fullName: function() {
    return this.firstName + " " + this.lastName;
  }
};
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #JavaScript #Object #Methods
ADD COMMENT
Topic
Name
5+2 =