Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JavaScript Function call()

const person = {
  firstName:"John",
  lastName: "Doe",
  fullName: function () {
    return this.firstName + " " + this.lastName;
  }
}

// This will return "John Doe":
person.fullName();  
Source by github.com #
 
PREVIOUS NEXT
Tagged: #JavaScript #Function
ADD COMMENT
Topic
Name
4+3 =