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;
  }
};
 
PREVIOUS NEXT
Tagged: #JavaScript #Object #Methods
ADD COMMENT
Topic
Name
9+5 =