Tutorials Home
What's New
Top Rated
Submit
myTutes
Random!
Prototypes and Inheritance
Author: Michael Barry
| Website: http://www.iol.ie/~michaelbarry/public_html |
If you want to check which properties belong to an object you can check them like this;
var output="";
function myFunction(){
this.x="aaa";
}
var mm=new myFunction;
mm.y="bbb";
mm.z="ccc";
function listProps(){
for(var i in mm) output+=i+"="+mm[i]+".";
}
output = "x=aaa.y=bbb.z=ccc."
| » Level Intermediate |
|
|
Added: : 2001-06-22
Rating: 7.51 Votes: 30
Hits: 3774
|
| » Author |
|
No details available.
|
| » Download |
|
Download the files used in this tutorial.
|
|
Download (0 kb)
|
|
Get conversion and unzipping tools
for PC and Mac here!
|
| » Forums |
|
More help? Search our boards for quick answers!
|
|
Please rate this tutorial, 10 is the top rating, you can also click the
comments link to read/write a review.
|
|
|