ASP Best Practices

Previous Topic Next Topic

Blocked Comments in JScript

Multiline comments in JScript begin with /* and end with */.  Large, multistatement comment blocks should be formatted as in the example below.

Example:

function showIt()

  /*******************************************
  ** This is a large comment block.         
  **                                        
  ** This procedure is called when the user 
  ** selects a language.                    
  **                                        
  ** It displays an appropriate select item 
  ** based on their language choice.        
  **                                        
  ** The method choices are each contained  
  ** in a separate div.                    
  *******************************************/

{
  var vntCurrLang = document.all
  ...
}

© 1997-1999 Microsoft Corporation. All rights reserved.