Javascript formatting for if condition
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4728144/check-variable-equality-against-a-list-of-values">Check variable equality against a list of values</a><br>
  <a href="http://stackoverflow.com/questions/13959064/javascript-comparing-single-value-against-multiple-values-with-or-operands">Javascript: Comparing SINGLE Value Against MULTIPLE Values with OR Operands</a>  </p>
</blockquote>



<p>First of all I am new to javascript side. Please let me know is there any simple way of formating the below code.</p>

<pre><code>if( fileName== 'doc' || fileName=='docx' || fileName=='xls' || fileName=='xlsx' || fileName=='ppt' || fileName=='pdf' ){

Do something

} else{

    Do something

}
</code></pre>
