title: Example of Properties vs. Methods in JS
body: <p>I found a great description of the semantic difference between Properties and Methods (paraphrased, via <a href="http://www.webdeveloper.com/forum/showthread.php?133712-Properties-Vs.-Methods" rel="noreferrer">http://www.webdeveloper.com/forum/showthread.php?133712-Properties-Vs.-Methods</a>):</p>
  <blockquote>
  <p>Properties are like nouns. They have a value or state.</p>
  <p>Methods are like verbs. They perform actions.</p>
  <p>A property can't perform an action and the only value that a method has is the one that is returned after it finishes performing the action.</p>
  <p>e.g.</p>
  <p><strong>Property</strong>: door; <strong>Possible Values</strong>: open, closed</p>
  <p><strong>Method</strong>: openDoor; <strong>Action</strong>: to change the value of the door property to &quot;open&quot;</p>
  </blockquote>
  <p><strong>Creating an example:</strong> I understand this in theory but I can't come up with an example. Would it be possible to show me how the door/openDoor would look in actual Javascript code?</p>