Object Literal Syntax

Before you dive right in, it's a good idea to know what object literals look like. TabParams is an object literal.

It would be possible to write the TabParams properties out one at a time, as:

    TabParams = new Object();
    TabParams.eventType = "click";
    TabParams.tabTagName = "span";
	

The above statement is equivalent to:

    TabParams = { 
        eventType : click",
        tabTagName : "span"
     };
	

Object literals are clearer and more compact. You don't have to type TabParams. before each property.

A few things to watch out for with object literals: