Styles of JavaScript Comments : Comments « Language Basics « JavaScript DHTML






Styles of JavaScript Comments

// I'm a single-line comment 
// This is another comment 
/* Real multiple-line comment to follow */ //Yet another comment 

/************************************************************** 
 * JavaScript module written by Harold Davis 
 * Purpose: Rock, Scissors, and Paper game 
 * Date: 
 * Inputs: 
 * Outputs: 
 * Of special note: Demonstrates conditional statements 
 **************************************************************/ 
           
       








Related examples in the same category

1.Using JavaScript Comment Tags
2.Using JavaScript Comments