JavaScript DHTML/Language Basics/Comments

Материал из Web эксперт
Перейти к: навигация, поиск

Styles of JavaScript Comments

   <source lang="html4strict">

// 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 
**************************************************************/ 
          
      </source>
   
  


Using JavaScript Comments

   <source lang="html4strict">

<html> <head> <title>Using JavaScript comments</title> </head> <body> <script language="JavaScript">

</script> </body> </html>

      </source>
   
  


Using JavaScript Comment Tags

   <source lang="html4strict">

<html> <head>

 <title>JavaScript Unleashed</title>

</head> <body>

 <script type="text/javascript">
 
 </script>

</body> </html>

      </source>