What is a sub-object? Provide an example.
What will be an ideal response?
The value of a property can be another object, which is known as asub-object. For instance, the following code creates an object namedorderwith a sub-object namedaddress: var order = { orderNumber: "F5987", address: { street: "1 Main St", city:"Farmington",
state: "NY", zip: "14425" } };The main object, with the name order, has two properties: orderNumber and address. Theaddressproperty is itself a sub-object, and has four properties of its own:street, city,state, andzip.
You might also like to view...
List three probing questions that are part of the Snowden Evans interview. In particular what did you learn by following up on the questions you asked Snowden Evans?
What will be an ideal response?
A bubble sort is sometimes called a ____ sort.
A. raising B. sinking C. switch D. match
Which of the following issues and maintains digital certificates?
A. Registration Authority B. Certification Authority C. Public Key Infrastructure D. Client nodes
The BPDU messages are sent between the root bridge and the best ports on the other devices, which are called ____.
A. bridge ports B. root ports C. BDU ports D. CBDPU ports