Answers for "js functions inside of objects"

3

js functions inside of objects

var person = {
  name: "Fred",
  sayName: function() {
    console.log(this.name);
  }
};

person.sayName();
Posted by: Guest on March-08-2020

Code answers related to "js functions inside of objects"

Code answers related to "Javascript"

Browse Popular Code Answers by Language