function (){
alert('a function');
}
when i put it on the firebug javascript control. it shows function statement requires a name
(function (){
alert('a function');
}())
when i put the above it shows ok.
function (){
alert('a function');
}()
it also shows function statement requires a name and doesn't execute the function. why?