Quick Explanation of the Object Literal
By Christian Heilmann | February 17th, 2006 | Filed in DOM, DOM Scripting TF
Christian Heilmann explains the object literal JavaScript syntax.
Skip to comment formAnswering some emails, I realised lately that the object literal notation used in modern scripts does confuse JavaScript novices. So if the following is gobbledegook for you:
myStuff={
myVariable:'value',
init:function(){
},
doStuff:function(){
}
}
It hopefully will help you to read Show love to the object literal.