Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0b581f2

Browse files
Update 05_CodeComments.md
1 parent bf27594 commit 0b581f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎05_CodeComments.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
When you write programs, it is sometimes useful to write comments, so you, or anyone reading the program, can understand it better.
2-
3-
The comments are completely ignored by the program interpreter in the computer, so you can write anything on the comments and it will never cause any error.
4-
51
# Code Comments
62

73
---
84

5+
When you write programs, it is sometimes useful to write comments, so you, or anyone reading the program, can understand it better.
6+
7+
The comments are completely ignored by the program interpreter in the computer, so you can write anything on the comments and it will never cause any error.
8+
99
In Javascript there are two types of comments: line comments and block comments.
1010

1111
A line comment starts when the program reaches the two forward slashes in sequence. This informs the computer that whatever follows those slashes in that line is a comment and should not be considered program instructions. For example:

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /