How do built-in properties like length work in JavaScript?
<p>I am new to JavaScript. I have a little doubt in basic concepts in JavaScript.</p>

<pre><code>//Example Program
class classname(){
   //Decalaring Properties
   var length;
   var abcd;
   public function toUpperCase(){
      //This Method is used to convert the strings into uppercase
   }
   public function toLowerCase(){
      //This Method is used to convert the strings into LowerCase
   }
}
</code></pre>

<h3>Point 1:</h3>

<p>Methods are the actions that can be performed on objects.</p>

<pre><code>var str="Hello world!";
document.write(str.toUpperCase());
</code></pre>

<h3>Point 2:</h3>

<p>A property is like variable (I am able to set and get its value at runtime.)</p>

<p>I want to know how built-in-properties in JavaScript work?</p>

<p>For example, how does the <code>length</code> property work?</p>
