View Single Post
  #1 (permalink)  
Old January 8th, 2010, 07:19 PM
ProtomanMt ProtomanMt is offline
Registered User
Join Date: Dec 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Is the parenthesees necessary?

I'm on page 121, simulating private methods, JavaScript, Programmer's Reference, and I was just wondering if the parentheses on line 7 before the function is imperative. Is it just for illustrative purposes? I'm just curious because the code runs both ways, with and without the parentheses.

I'm new to this, but I'm grasping on to the concepts pretty fast, but just so I completely understand the style and not get lost, I was just curious about this one thing.

Thank you.
Reply With Quote