Properties


#1

Is there any difference between properties and Built-in Methods, if there any then what it is?


#2

yes, look at this code:

var person = {
  name: "John Doe",
  sayHello: function() {
        console.log("hello");
  }
}

name is a property, while sayHello is a method. sayHello is not a built-in method, its a method you build. A built-in method is simple a method which ships with JS


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.