Jump to content
Larry Ullman's Book Forums

When To Use A Property Vs A Method?

Recommended Posts

Hello kamaboko, and welcome to the forums.


A property is a number, string, Boolean, array or object attached to a higher-level object; a method is a function attached to a higher-level object.

Really, it's just a semantic difference made to differentiate functions attached to objects from other properties attached to objects.


That make sense?

By the way, you a big fan of kamaboko? I quite like it myself.

  • Upvote 1
Link to comment
Share on other sites


  • Create New...