• +91 9723535972
  • info@interviewmaterial.com

Web Design Interview Questions and Answers

Related Subjects

Question - How are comments used in JavaScript?

Answer -

JavaScript supports two types of comment insertion in the code. Single-line comments and multi-line comments.

Single-line comment: “//” is used for single-line comment insertion
Example:

//This is a single-line comment

Multi-line comment: “/* */” is used to add multi-line comments
Example:

/* This
is a
multi-line
comment*/

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners