Jump to content
Larry Ullman's Book Forums
Sign in to follow this  
kamaboko

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...