save up to 40%

What are comments?

Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.

What are comments?

Rating:

Comments are statements that are ignored by the JavaScript interpreter. It allows the owner of the code to leave notes about the working of the program or a particular statement. There are two types of comments as follows:

  1. Single Line

  2. Multiline

Single Line Comments (//): When the owner writes a single line comment, the text written in the line is ignored by the JavaScript interpreter.

For example:

// This is a single line comment.

Multiline Comments (/*... */): With multiline comments, the owner can write comments on more than one line of text.

For example:

/* This is a multiline comment.
Programmers can use it to write comments on multiple lines.*/


Rating:



Other articles

Click here to Article home

 
uCertify.com | Our Company | Articles | Privacy | Security | Contact Us | News and Press Release | uCertify India
MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD Cisco Certification: CCNA, CCENT, A+, Network+, Security+
Oracle Certification: OCP 9i, OCP 10g, OCA 9i, OCA 10g CIW foundation    EC-212-32    CISSP    Photoshop ACE    Adobe Flash ACE
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.