title: Which is the best syntax to use for jQuery conditional statements?
body: <p>I come from a Perl coders background, so out of habit I always use curly brackets to enclose the actions taken when a conditional statement returns a true. For example, and using jQuery, as this is where I need an explanation as to the difference, this two statements are both equivalent and of valid syntax.</p>
  
  <pre><code>if ($('#user_agreement').is(':checked')) { $('#thanks_message').show(); }  
  
  if ($('#user_agreement').is(':checked')) $('#thanks_message').show(); 
  </code></pre>
  
  <p>Are my old habits betraying me, and I'm just writting unnecessary extra code without any advantage? Or is one method more effective, or considered more standard to good coding practices? I would really like to understand any differences between the two different syntactical approaches, especially when they both work just as well.</p>