mozilla

Compare Revisions

Working with objects

Change Revisions

Revision 47815:

Revision 47815 by jbruni on

Revision 47816:

Revision 47816 by samuelreh on

Title:
Working with objects
Working with objects
Slug:
JavaScript/Guide/Working_with_Objects
JavaScript/Guide/Working_with_Objects
Tags:
JavaScript, NeedsEditorialReview, Document, Object
JavaScript, NeedsEditorialReview, Document, Object
Content:

Revision 47815
Revision 47816
n59function show_props(obj, obj_name) {n59function showProps(obj, objName) {
n62    result += obj_name + "." + i + " = " + obj[i] + "\n";n62    result += objName + "." + i + " = " + obj[i] + "\n";
t67      So, the function call <code>show_props(myCar, "myCar")</codt67      So, the function call <code>showProps(myCar, "myCar")</code
>e> would return the following:>> would return the following:

Back to History