Skip to content

Commit e2d229b

Browse files
feat: add comments in javascript
1 parent 34d7135 commit e2d229b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

part1 (Basics)/10_comments.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*
2+
INFO: What are Comments ?
3+
Comments are lines in your code that are ignored by the javascript engine. They're used to explain, organize, or disable parts of your code temporarily.
4+
*/
5+
6+
/*
7+
INFO: Signle-line Comment
8+
Use // to comment a single line.
9+
*/
10+
11+
// let name = "Rafay";
12+
13+
14+
/*
15+
INFO: Multi-line Comment
16+
Use /* * / to comment across multiple lines.
17+
*/
18+
19+
/*
20+
let name = "rafay";
21+
let number = 123;
22+
*/

0 commit comments

Comments
 (0)