Nested Objects

By: Dusty Arlia
Published on Monday, June 10, 2013, 01:44 PM
Last Updated on Sunday, July 12, 2015 at 3:13 PM
Total Updates: 2

Nested objects are objects inside of other objects. Here is the basic syntax for nesting objects:

var employee = {
    "first_name": "Justin",
        "last_name": "Bieber",
        "address": {
            "street number": 777,
            "street name": "Euclid",
            "city": "Cleveland",
            "state": "Ohio"
    }
};

Comments:

Ad: