Tuesday, February 22, 2011

javascript... help?

object=(function(){})() <-self-calling/singleton
object=(function(){}) <-must be instantiated

Why?
What is this?
How did I accidentally stumble upon this and why is it so useful?

I know that there's something better, but for the time being I'm just hacking away at javascript with my ax o plenty to get a feel for debugging, or at least that's what I tell myself.

Insight welcome.

No comments: