top of page

Comment in java script

  • Writer: satyanarayan behera
    satyanarayan behera
  • Aug 22, 2022
  • 1 min read

In programming, if we want to provide any information or descriptions for further reference or future reference we can use comment functionality and it will not impact the coding.

In JavaScript, we have two types of comment styles, single line comment and another is multiline line comment please find the below example for the ready reference.

Single line comment >>

// This is the single comment structure

Multiline comment >>

/* This is..……………a…….

…. multiline comment */

 
 
 

Recent Posts

See All
For Loop : Task 1

Write a "for" loop that will perform exactly the same repetitive code as this: console.log(1) console.log(2) console.log(3)...

 
 
 

Comments


  • alt.text.label.LinkedIn

©2022 by Satya

bottom of page