kamaboko 1 Posted May 23, 2014 Report Share Posted May 23, 2014 Hello, Is there a rule I should think of when deciding to use a property vs a method? Thanks, K Quote Link to post Share on other sites
HartleySan 826 Posted May 23, 2014 Report Share Posted May 23, 2014 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. 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.