Comunitatea PHP Romania
 

 
Core JavaScript Reference 1.5: 4 Comments
Previous     Contents     Index     Next     
Core JavaScript Reference 1.5



Chapter 4   Chapter 4 Comments


This chapter describes the syntax for comments, which can appear anywhere between tokens.



comment



Notations by the author to explain what a script does. Comments are ignored by the interpreter.

Implemented in  

JavaScript 1.0, NES 2.0  

ECMA version  

ECMA-262  


Syntax
// comment text
/* multiple line comment text */


Description
JavaScript supports Java-style comments:

  • Comments on a single line are preceded by a double-slash (//).

  • Comments that span multiple lines are preceded by a /* and followed by a */.

Examples
// This is a single-line comment.
/* This is a multiple-line comment. It can be of any length, and
you can put whatever you want here. */


Previous     Contents     Index     Next     
Copyright © 2000 Netscape Communications Corp. All rights reserved.

Last Updated September 28, 2000

Ultimele discutii in forum RSS Forum

Ultimele articole Ultimele articole

Newsletter


Email:
 inscriere
 renuntare
 
 Arhiva newsletter

Parteneriat

Copyright © 2001-2008 PHP Romania Add PHPRomania to Google Add PHPRomania to Del.icio.us Add PHPRomania to Stumbleupon Add PHPRomania to Yahoo! Add PHPRomania to Digg Add PHPRomania to Blink Ringtones | MPAA | Debt Consolidation | Debt Help | Top Game Tips
Ads: Partener Way2Web Nework: gazduire web | inregistrare domenii | web design | imobiliare | web hosting
Powered by Simplis