In the following JavaScript example, are we seeing 2 object literals as properties of an object literal?
dw_Tooltip.content_vars = {
link1: {
img: 'images/dw-btn.gif',
txt: 'dyn-web button',
w: 100
},
link2: {
img: 'images/dot-com-btn.gif',
txt: 'dyn-web.com button',
w: 184
}
}
Yes.
link1 and link2 are properties of the content_vars object.
However, link1 and link2 are objects, themselves, with their own properties.
You can nest an infinite number of objects or arrays inside of other objects or arrays.