Properties are the values associated with an object.
In the following example we are using the length property of the String object to return the number of characters in a string:
<script type="text/javascript"> var txt="Hello World!"; document.write(txt.length); </script> |
The output of the code above will be:
12
0 comments: